Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote: make match_refs() not short-circuit
[gitweb.git]
/
builtin-fetch-pack.c
diff --git
a/builtin-fetch-pack.c
b/builtin-fetch-pack.c
index 372bfa20a2eac978f7511f5d8d9296be789b527f..67fb80ec48d6d8f0327628afd86fb366d8f97617 100644
(file)
--- a/
builtin-fetch-pack.c
+++ b/
builtin-fetch-pack.c
@@
-780,7
+780,8
@@
struct ref *fetch_pack(struct fetch_pack_args *my_args,
struct ref *ref_cpy;
fetch_pack_setup();
- memcpy(&args, my_args, sizeof(args));
+ if (&args != my_args)
+ memcpy(&args, my_args, sizeof(args));
if (args.depth > 0) {
if (stat(git_path("shallow"), &st))
st.st_mtime = 0;