projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a "--notags" option for git-p4import.
[git.git]
/
receive-pack.c
diff --git
a/receive-pack.c
b/receive-pack.c
index
2a3db16
..
93929b5
100644
(file)
--- a/
receive-pack.c
+++ b/
receive-pack.c
@@
-6,7
+6,7
@@
static const char receive_pack_usage[] = "git-receive-pack <git-dir>";
static const char receive_pack_usage[] = "git-receive-pack <git-dir>";
-static char *unpacker[] = { "unpack-objects", NULL };
+static c
onst c
har *unpacker[] = { "unpack-objects", NULL };
static int report_status = 0;
static int report_status = 0;
@@
-177,7
+177,7
@@
static void run_update_post_hook(struct command *cmd)
{
struct command *cmd_p;
int argc;
{
struct command *cmd_p;
int argc;
- char **argv;
+ c
onst c
har **argv;
if (access(update_post_hook, X_OK) < 0)
return;
if (access(update_post_hook, X_OK) < 0)
return;
@@
-190,10
+190,12
@@
static void run_update_post_hook(struct command *cmd)
argv[0] = update_post_hook;
for (argc = 1, cmd_p = cmd; cmd_p; cmd_p = cmd_p->next) {
argv[0] = update_post_hook;
for (argc = 1, cmd_p = cmd; cmd_p; cmd_p = cmd_p->next) {
+ char *p;
if (cmd_p->error_string)
continue;
if (cmd_p->error_string)
continue;
- argv[argc] = xmalloc(strlen(cmd_p->ref_name) + 1);
- strcpy(argv[argc], cmd_p->ref_name);
+ p = xmalloc(strlen(cmd_p->ref_name) + 1);
+ strcpy(p, cmd_p->ref_name);
+ argv[argc] = p;
argc++;
}
argv[argc] = NULL;
argc++;
}
argv[argc] = NULL;