Skip to content

Commit

Permalink
Fixing again
Browse files Browse the repository at this point in the history
  • Loading branch information
marcleblanc2 committed Mar 26, 2024
1 parent 0db1639 commit 79d15e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions repo-converter/build/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,14 +1056,15 @@ def cleanup_branches_and_tags(local_repo_path, cmd_git_default_branch, git_defau
elif path.startswith(local_branch_prefix):
continue

# If the path is the default branch, then delete it, it'll get recreated later
elif path == git_default_branch:
continue

# If the path is the git-svn's default remote branch, then keep it as is
# If the path is the git-svn's default remote branch, then keep it as is, and add a new default local branch
elif path == "refs/remotes/git-svn":

output_list_of_reversed_tuples.append(tuple([path,hash]))
output_list_of_reversed_tuples.append(tuple([f"{local_branch_prefix}/{git_default_branch}",hash]))

# If the path is the default branch, then delete it, it'll get recreated later
elif path == f"{local_branch_prefix}/{git_default_branch}":
continue

# If the path is a remote tag, then copy it to a local path
elif path.startswith(remote_tag_prefix):
Expand Down

0 comments on commit 79d15e5

Please sign in to comment.