This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5049126  git reset --hard for repositories being tracked
5049126 is described below

commit 50491262f494c095b1087781b5b9f9ea214aebdc
Author: Sam Ruby <[email protected]>
AuthorDate: Thu Sep 28 12:34:38 2017 -0400

    git reset --hard for repositories being tracked
---
 Rakefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index 9086cfc..4fb0c88 100644
--- a/Rakefile
+++ b/Rakefile
@@ -148,7 +148,8 @@ namespace :git do
 
               # pull changes
               system "git checkout #{branch}" if branch
-              system 'git pull'
+              system 'git fetch origin'
+              system "git reset --hard origin/#{branch || 'master'}"
             end
           else
             # fresh checkout

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to