projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da41fa
)
strip suffix .git used typically for bare repos
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 26 Dec 2015 11:57:33 +0000
(12:57 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 26 Dec 2015 11:57:33 +0000
(12:57 +0100)
urmoms.c
patch
|
blob
|
history
diff --git
a/urmoms.c
b/urmoms.c
index 9391de6f937143477da2fccc0986973f35094e45..301d0e17e423955d0e8b61d213fe77b920baae34 100644
(file)
--- a/
urmoms.c
+++ b/
urmoms.c
@@
-791,6
+791,9
@@
main(int argc, char *argv[])
p = xbasename(repodir);
snprintf(name, sizeof(name), "%s", p);
free(p);
+ /* remove .git suffix, typically used by bare repos */
+ if ((p = strstr(name, ".git")))
+ *p = '\0';
/* read description or .git/description */
snprintf(path, sizeof(path), "%s%s%s",