summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-10 12:08:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-10 20:28:31 (GMT)
commit126aac5cf3b5696481aafe840f8f596653087d8b (patch)
tree94e1cd9c4e582b32557f6121a12158e5e859f2de /transport-helper.c
parentd6ae7b2d366da8d90aa90cabfd54d285c24b5a86 (diff)
downloadgit-126aac5cf3b5696481aafe840f8f596653087d8b.zip
git-126aac5cf3b5696481aafe840f8f596653087d8b.tar.gz
git-126aac5cf3b5696481aafe840f8f596653087d8b.tar.bz2
transport-helper: fix remote helper namespace regression
Commit 664059f (transport-helper: update remote helper namespace) updates the namespace when the push succeeds or not; we should do it only when it succeeded. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 9217409..6cd0be9 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -701,7 +701,7 @@ static int push_update_ref_status(struct strbuf *buf,
(*ref)->status = status;
(*ref)->remote_status = msg;
- return 0;
+ return !(status == REF_STATUS_OK);
}
static void push_update_refs_status(struct helper_data *data,