parent
00bc0ec262
commit
dd9142993c
|
@ -218,9 +218,11 @@ int cmd_show_ref(int argc, const char **argv, const char *prefix)
|
||||||
unsigned char sha1[20];
|
unsigned char sha1[20];
|
||||||
|
|
||||||
while (*pattern) {
|
while (*pattern) {
|
||||||
if (resolve_ref(*pattern, sha1, 1, NULL))
|
if (resolve_ref(*pattern, sha1, 1, NULL)) {
|
||||||
printf("%s %s\n", sha1_to_hex(sha1),
|
if (!quiet)
|
||||||
*pattern);
|
printf("%s %s\n",
|
||||||
|
sha1_to_hex(sha1), *pattern);
|
||||||
|
}
|
||||||
else if (!quiet)
|
else if (!quiet)
|
||||||
die("'%s' - not a valid ref", *pattern);
|
die("'%s' - not a valid ref", *pattern);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue