Skip to content

Commit ca48412

Browse files
authored
Merge pull request #3 from rasodu/static-dir-name-for-folder
Use static dir name when cloning source git repo.
2 parents aae584d + 84e54da commit ca48412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-sync.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ fi
3131
echo "SOURCE=$SOURCE_REPO:$SOURCE_BRANCH"
3232
echo "DESTINATION=$DESTINATION_REPO:$DESTINATION_BRANCH"
3333

34-
git clone "$SOURCE_REPO" --origin source && cd `basename "$SOURCE_REPO" .git`
34+
git clone "$SOURCE_REPO" source --origin source && cd source
3535
git remote add destination "$DESTINATION_REPO"
3636
git push destination "${SOURCE_BRANCH}:${DESTINATION_BRANCH}" -f

0 commit comments

Comments
 (0)