Update tests not to assume that generated packfiles are writable.
[gitweb.git] / peek-remote.c
index 7b66228a22f7ddeeb652924e5f42df5e63b2a7b4..96bfac498bdc58c90c9bc136a1df7bac9bfa0d92 100644 (file)
@@ -35,11 +35,11 @@ int main(int argc, char **argv)
                char *arg = argv[i];
 
                if (*arg == '-') {
-                       if (!(-prefixcmp(arg, "--upload-pack="))) {
+                       if (!prefixcmp(arg, "--upload-pack=")) {
                                uploadpack = arg + 14;
                                continue;
                        }
-                       if (!(-prefixcmp(arg, "--exec="))) {
+                       if (!prefixcmp(arg, "--exec=")) {
                                uploadpack = arg + 7;
                                continue;
                        }