Skip to content

Commit

Permalink
fix squashed_branch defaulting
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbleskates committed Dec 16, 2021
1 parent 316a741 commit 461157a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unsquash.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def main():
sys.exit(1)
elif args.squashed_branch is None and args.squashed_ref is None:
args.squashed_branch = "master" # default to master branch
elif args.squashed_branch is not None:

if args.squashed_branch is not None:
squashed_ref = f"refs/heads/{args.squashed_branch}".encode()
else:
squashed_ref = args.squashed_ref.encode()
Expand Down

0 comments on commit 461157a

Please sign in to comment.