summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
diff options
context:
space:
mode:
Diffstat (limited to 'localikiwikicreatesite')
-rwxr-xr-xlocalikiwikicreatesite3
1 files changed, 2 insertions, 1 deletions
diff --git a/localikiwikicreatesite b/localikiwikicreatesite
index c75d0d9..54a212f 100755
--- a/localikiwikicreatesite
+++ b/localikiwikicreatesite
@@ -253,7 +253,8 @@ if [ -n "$origin" ]; then
git_setenv_work "$CFGDIR"
if [ -n "$branch" ]; then
git branch -f "$branch" "origin/$branch"
- git checkout "$branch"
+ # git checkout ignores GIT_DIR and GIT_WORKING_TREE
+ ( cd "$CFGDIR" && git checkout "$branch" )
fi
git config remote.origin.url "$DESTSRCDIR/$project.git"
git push --all