mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Fixed check of git remote
- for some reason, that git remote check wasn't working in a bash expansion, and then I couldn't get variables updating properly - this one seems to work and maintains the functionality we want
This commit is contained in:
parent
2bdb9c5d0a
commit
46574de3c5
17
Gruntfile.js
17
Gruntfile.js
@ -227,16 +227,23 @@ const configureGrunt = function (grunt) {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REMOTE=$(git remote | grep "${upstream}" > /dev/null && echo "${upstream}" || echo "origin")
|
||||
git checkout master
|
||||
|
||||
if git config remote.${upstream}.url > /dev/null; then
|
||||
git pull ${upstream} master
|
||||
else
|
||||
git pull origin master
|
||||
fi
|
||||
|
||||
git checkout master && \
|
||||
git pull $REMOTE master && \
|
||||
yarn && \
|
||||
git submodule foreach "
|
||||
git checkout master
|
||||
|
||||
REMOTE=$(git remote | grep "${upstream}" > /dev/null && echo "${upstream}" || echo "origin")
|
||||
git pull $REMOTE master
|
||||
if git config remote.${upstream}.url > /dev/null; then
|
||||
git pull ${upstream} master
|
||||
else
|
||||
git pull origin master
|
||||
fi
|
||||
"
|
||||
`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user