Introduction
Introduction Statistics Contact Development Disclaimer Help
tstrip suffix .git used typically for bare repos - stagit - static git page gen…
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit e4e03b3bf91db3a6fe8acdcf97603240e9bf7896
parent 3da41fa5dde944cd00171d384ce30c20fbb0c5a0
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 26 Dec 2015 12:57:33 +0100
strip suffix .git used typically for bare repos
Diffstat:
M urmoms.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/urmoms.c b/urmoms.c
t@@ -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",
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.