Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
daemon.c: fix condition for redirecting stderr
[gitweb.git]
/
builtin
/
rev-parse.c
diff --git
a/builtin/rev-parse.c
b/builtin/rev-parse.c
index a8d7e6f7aecc2e4179547bde3fd6d07231764b9f..74aa644cbb37b5741c521eba53d0a040aaf1582e 100644
(file)
--- a/
builtin/rev-parse.c
+++ b/
builtin/rev-parse.c
@@
-133,7
+133,7
@@
static void show_rev(int type, const struct object_id *oid, const char *name)
struct object_id discard;
char *full;
- switch (dwim_ref(name, strlen(name),
discard.hash
, &full)) {
+ switch (dwim_ref(name, strlen(name),
&discard
, &full)) {
case 0:
/*
* Not found -- not a ref. We could