Skip to content

Commit

Permalink
fix: not use /github as default home directory to prevent conflicts (#11
Browse files Browse the repository at this point in the history
)
wei authored Apr 23, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent aa73859 commit f5f2380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-sync.sh
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ fi
echo "SOURCE=$SOURCE_REPO:$SOURCE_BRANCH"
echo "DESTINATION=$DESTINATION_REPO:$DESTINATION_BRANCH"

git clone "$SOURCE_REPO" source --origin source && cd source
git clone "$SOURCE_REPO" /root/source --origin source && cd /root/source
git remote add destination "$DESTINATION_REPO"

# Pull all branches references down locally so subsequent commands can see them

0 comments on commit f5f2380

Please sign in to comment.