Skip to content

Commit

Permalink
Exclude Gemfile.lock when sync'ing from another repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Oct 3, 2012
1 parent b6fe43f commit 7fac3c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rakelib/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def git_push
# Don't use -a (--archive) as it includes -t, --times which can
# cause .rbc files to not be regenerated when they should.
Rsync_options = "-rlpgoDvP --delete --exclude '*svn*' --exclude '.git' --exclude '*swp' " \
"--exclude '*rbc' --exclude '*.rej' --exclude '*.orig' --exclude 'tags'"
"--exclude '*rbc' --exclude '*.rej' --exclude '*.orig' --exclude 'tags' " \
"--exclude 'Gemfile.lock'"

def rsync(left, right)
sh "rsync #{Rsync_options} #{left} #{right}"
Expand Down

0 comments on commit 7fac3c6

Please sign in to comment.