2021-02-16 13:11:05 +01:00
|
|
|
#!/bin/sh
|
2023-04-10 18:31:48 +02:00
|
|
|
git-l ||
|
|
|
|
{ test -e $(git rev-parse --git-path rebase-merge) &&
|
|
|
|
printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 &&
|
|
|
|
git rebase --abort; }
|
2021-05-06 08:29:05 +02:00
|
|
|
if git rev-parse @{upstream} >/dev/null 2>&1
|
2024-06-28 22:34:15 +03:00
|
|
|
then git push --recurse-submodules=on-demand "$@"
|
|
|
|
else git push --set-upstream "$@"
|
2021-03-12 10:21:23 +01:00
|
|
|
fi
|