shorten got-push a bit more, fix prompt format
This commit is contained in:
parent
c9f27cbaa5
commit
6eb46c9ff7
@ -5,11 +5,8 @@
|
||||
function got-push {
|
||||
local r
|
||||
r=$(set -e; got info | awk '$1 ~ "^repository:" {print $2}')
|
||||
if [ "$r" != "" ]; then
|
||||
[ -z "$r" ] && return 1
|
||||
(cd "$r" && git push "$@")
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function got-sync {
|
||||
|
Loading…
Reference in New Issue
Block a user