Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:ianb/git-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Jul 16, 2012
2 parents 88c8cb7 + 3233a55 commit c93c85a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions git-sync
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,9 @@ if [ ! -e $repo_location ] ; then
git clone $git_op $remote $repo_location
fi

if [ -e .syncignore ] ; then
rsync_option="--exclude-from=.syncignore"
else
rsync_option=""
fi

## FIXME: should I exclude untracked files? Seems like it

rsync $rsync_option --recursive --delete --exclude .git . $repo_location
# per discussion over build tools issue, rsync everything
rsync --recursive --delete --exclude .git . $repo_location

if [ -e .syncignore ] ; then
cat .syncignore >> $repo_location/.gitignore
Expand All @@ -84,5 +78,5 @@ version="$(git describe --always --dirty)"
git add $adds
fi
git commit -a -m "deployment $version"
git push
git push origin master
)

0 comments on commit c93c85a

Please sign in to comment.