Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Better
Commits
a54c08c5
Commit
a54c08c5
authored
May 10, 2016
by
Aral Balkan
Browse files
better/update now updates from latest changes from live. Closes
#11
.
parent
8e68f6f6
Pipeline
#506
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
better/update
View file @
a54c08c5
...
...
@@ -221,8 +221,17 @@ processGenericHook(){
ensurePersonIsLoggedIn
createGlobals
branchName
=
$(
runIn
$contentDirectory
"git branch | sed -n -e 's/^
\*
\(
.*
\)
/
\1
/p'"
)
echo
" · Updating branch
${
branchName
}
"
runIn
$contentDirectory
"git pull live
\"
$branchName
\"
"
echo
" · Pulling latest changes from live and updating branch
${
branchName
}
"
# runIn $contentDirectory "git pull live \"$branchName\""
if
[
"
$branchName
"
==
"master"
]
;
then
echo
" · Already in master, pulling from live."
runIn
$contentDirectory
"git pull live master"
else
runIn
$contentDirectory
"git checkout master"
runIn
$contentDirectory
"git pull live master"
runIn
$contentDirectory
"git checkout
${
branchName
}
"
runIn
$contentDirectory
"git merge master"
fi
goodbye
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment