Let push-pending finish searching before displaying
This commit is contained in:
parent
3c359c37ea
commit
94addc9a95
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
git-pending "$@" \
|
||||
repositories=$(git-pending "$@" \
|
||||
| grep '^ahead' \
|
||||
| lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \
|
||||
)
|
||||
echo "$repositories" \
|
||||
| zenity --list --column Repository --column Path --text "Repositories that need pushing:" --multiple --title "Git" --separator ';' --width 800 --height 300 --print-column=2 2>/dev/null \
|
||||
| tr ';' '\n' \
|
||||
| xargs -L 1 -I€ sh -c 'cd € && git push'
|
||||
|
|
Loading…
Reference in a new issue