Merge pull request #6310 from GabrielInTheWorld/dev
Improves the 'services-to-master' function
This commit is contained in:
commit
95504ce8c0
@ -19,13 +19,11 @@ function get_upstream_branch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_upstream_name {
|
function get_upstream_name {
|
||||||
{
|
git ls-remote --exit-code upstream &>/dev/null || {
|
||||||
# try
|
|
||||||
git ls-remote --exit-code upstream 2>/dev/null && echo "upstream"
|
|
||||||
} || {
|
|
||||||
# catch
|
|
||||||
echo "origin"
|
echo "origin"
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
echo "upstream"
|
||||||
}
|
}
|
||||||
|
|
||||||
function pull_latest_commit {
|
function pull_latest_commit {
|
||||||
@ -43,6 +41,7 @@ function pull_latest_commit {
|
|||||||
git pull $REMOTE_NAME $BRANCH_NAME;
|
git pull $REMOTE_NAME $BRANCH_NAME;
|
||||||
|
|
||||||
echo "$SUBMODULE_NAME: Successfully pulled latest commit"
|
echo "$SUBMODULE_NAME: Successfully pulled latest commit"
|
||||||
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
export -f pull_latest_commit
|
export -f pull_latest_commit
|
||||||
|
Loading…
Reference in New Issue
Block a user