Skip to content

Commit

Permalink
builtin-push.c cleanup
Browse files Browse the repository at this point in the history
Removes conditional return in builtin-push.c

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
rientjes authored and Junio C Hamano committed Aug 15, 2006
1 parent b756776 commit 9e0ec82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions builtin-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ static int expand_one_ref(const char *ref, const unsigned char *sha1)
/* Ignore the "refs/" at the beginning of the refname */
ref += 5;

if (strncmp(ref, "tags/", 5))
return 0;

add_refspec(strdup(ref));
if (!strncmp(ref, "tags/", 5))
add_refspec(strdup(ref));
return 0;
}

Expand Down

0 comments on commit 9e0ec82

Please sign in to comment.