Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
refspec: s/refspec_item_init/&_or_die/g
[gitweb.git]
/
builtin
/
pull.c
diff --git
a/builtin/pull.c
b/builtin/pull.c
index 09575fd23ce75b4bbf4e6a541649adc2f2107cba..af9306ecdc1616d3cae19825b1ba6f4c8ef8ccf2 100644
(file)
--- a/
builtin/pull.c
+++ b/
builtin/pull.c
@@
-680,7
+680,7
@@
static const char *get_tracking_branch(const char *remote, const char *refspec)
const char *spec_src;
const char *merge_branch;
- refspec_item_init(&spec, refspec, REFSPEC_FETCH);
+ refspec_item_init
_or_die
(&spec, refspec, REFSPEC_FETCH);
spec_src = spec.src;
if (!*spec_src || !strcmp(spec_src, "HEAD"))
spec_src = "HEAD";