Skip to contentSkip to conversation

git-svn: Don't create a "master" branch every time rebase is run

PATCH New Steven Grimm 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-svn: Don't create a "master" branch every time rebase is run

If you run "git-svn rebase" while sitting on a topic branch, there is no need to create a "master" branch if one didn't exist already. The branch was created implicitly by the automatic checkout after fetching, which in the case of rebase isn't actually necessary anyway.

---
 git-svn.perl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
git-svn.perl +2 -0
index 43e1591..d483e6b 100755
@@ -545,6 +545,8 @@ sub cmd_rebase {
 		exit 1;
 	}
 	unless ($_local) {
+		# rebase will checkout for us, so no need to do it explicitly
+		$_no_checkout = 'true';
 		$_fetch_all ? $gs->fetch_all : $gs->fetch;
 	}
 	command_noisy(rebase_cmd(), $gs->refname);
Signature · 1 line
1.5.3.6.960.g49661