Split back out update_hook handling in receive-pack
[gitweb.git] / builtin-push.c
index 2b98ba32310810462151b233053b99b0b5ab627a..6ab9a28e8c106858a1002971438e46778ff843d8 100644 (file)
@@ -149,10 +149,10 @@ static int get_remotes_uri(const char *repo, const char *uri[MAX_URI])
                int is_refspec;
                char *s, *p;
 
-               if (!(-prefixcmp(buffer, "URL:"))) {
+               if (!prefixcmp(buffer, "URL:")) {
                        is_refspec = 0;
                        s = buffer + 4;
-               } else if (!(-prefixcmp(buffer, "Push:"))) {
+               } else if (!prefixcmp(buffer, "Push:")) {
                        is_refspec = 1;
                        s = buffer + 5;
                } else
@@ -336,7 +336,7 @@ static int do_push(const char *repo)
                argv[dest_argc] = NULL;
                if (verbose)
                        fprintf(stderr, "Pushing to %s\n", dest);
-               err = run_command_v(argv);
+               err = run_command_v_opt(argv, 0);
                if (!err)
                        continue;
                switch (err) {