Skip to contentSkip to conversation

Change branch.c:install_branch_config()

PATCH New Sun He 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Sun He

author
#0 lore raw

PATCH 1/1 Change branch.c:install_branch_config()

---
 branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
branch.c +1 -1
index 723a36b..2fe9c05 100644
@@ -50,7 +50,7 @@ static int should_setup_rebase(const char *origin)
 void install_branch_config(int flag, const char *local, const char *origin, const char *remote)
 {
 	const char *shortname = remote + 11;
-	int remote_is_branch = starts_with(remote, "refs/heads/");
+	int remote_is_branch = skip_prefix(remote,"refs/heads")!=NULL;
 	struct strbuf key = STRBUF_INIT;
 	int rebasing = should_setup_rebase(origin);
 
Signature · 1 line
1.7.1