Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_temp_branch(self, project: str, original_branch: str) -> str:
name = "tmp_spectacles_" + time_hash()
logger.debug(
f"Branch '{name}' will be restored to branch '{original_branch}' in "
f"project '{project}'"
)
self.temp_branches.append(BranchState(project, original_branch, name))
return name
def setup_temp_branch(self, project: str, original_branch: str) -> str:
name = "tmp_spectacles_" + time_hash()
logger.debug(
f"Branch '{name}' will be restored to branch '{original_branch}' in "
f"project '{project}'"
)
self.temp_branches.append(BranchState(project, original_branch, name))
return name