Make git-push-pending follow symlinks

This commit is contained in:
Talia 2020-07-21 19:28:59 +02:00
parent 0ff16bc4c5
commit ec7d369b6e

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
(for name in $@; do find $name -name '*.git' -type d | sed 's/\/.git$//'; done) \ (for name in $@; do find -L $name -name '*.git' -type d | sed 's/\/.git$//'; done) \
| xargs git-pending \ | xargs git-pending \
| grep '^ahead' \ | grep '^ahead' \
| lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \ | lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \