threads / patch / 35973

patchChange branch.c:install_branch_config()

Subject: [PATCH] Change branch.c:install_branch_config()

## tl;dr

One message between Feb 27, 2014 and Feb 27, 2014. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Sun He· Feb 27, 2014, 12:27 UTC · lore
Signed-off-by: Sun He <sunheehnus@gmail.com>
---
 branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to branch.c +1 −1
diff --git a/branch.c b/branch.c
index 723a36b..2fe9c05 100644
--- a/branch.c
+++ b/branch.c
@@ -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);
 
-- 
1.7.1

← back to recent threads