]> git.phdru.name Git - git-scripts.git/commitdiff
Fix base directory name: do not remove .git suffix
authorOleg Broytman <phd@phdru.name>
Mon, 9 Jan 2017 16:57:39 +0000 (19:57 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 9 Jan 2017 17:10:25 +0000 (20:10 +0300)
do-all

diff --git a/do-all b/do-all
index 4b87ab27227573a16963a5fbe53542eb937a6a01..bd634ade504957e2b7493c0e771b3026f7905768 100755 (executable)
--- a/do-all
+++ b/do-all
@@ -6,6 +6,6 @@ cat "$prog_dir"/locate-all.list |
 while read d; do
    if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
    test -d "$d"/.git && g="$d"/.git || g="$d"
 while read d; do
    if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
    test -d "$d"/.git && g="$d"/.git || g="$d"
-   b="`basename \"$d\" .git`"
+   b="`basename \"$d\"`"
    eval "$@"
 done
    eval "$@"
 done