]> git.armaanb.net Git - stagit.git/commitdiff
nvm, dont strip .git from bare repos
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 26 Dec 2015 19:58:28 +0000 (20:58 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 26 Dec 2015 19:58:28 +0000 (20:58 +0100)
urmoms.c

index 301d0e17e423955d0e8b61d213fe77b920baae34..9391de6f937143477da2fccc0986973f35094e45 100644 (file)
--- a/urmoms.c
+++ b/urmoms.c
@@ -791,9 +791,6 @@ 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",