mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 02:30:08 +00:00
now trailing .git is properly ignored...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c2da2b01b4
commit
433faa03ab
@ -93,7 +93,8 @@ lines=()
|
||||
| sed -n '/\[remote "origin"\]/,/^\s*url/p' \
|
||||
| grep 'url = ' \
|
||||
| sed \
|
||||
-e 's/\s*url\s*=\s*//')
|
||||
-e 's/\s*url\s*=\s*//' \
|
||||
-e 's/.git\s*$//')
|
||||
[ -z $remote ] \
|
||||
&& continue
|
||||
line="$path=$remote"
|
||||
@ -103,7 +104,9 @@ lines=()
|
||||
if [ -e "$LIST" ] ; then
|
||||
cat "$LIST" \
|
||||
| grep -ve '\(^\s*#\|^\s*$\)' \
|
||||
| sed -e 's/^-//'
|
||||
| sed \
|
||||
-e 's/^-//' \
|
||||
-e 's/.git\s*$//'
|
||||
fi
|
||||
} \
|
||||
| sort \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user