diff options
author | John Doe <axil@gitlab.com> | 2017-12-20 18:05:47 +0300 |
---|---|---|
committer | John Doe <axil@gitlab.com> | 2017-12-20 18:13:41 +0300 |
commit | 246a09269d5d32fbbd0ea4a80e06d613ee14b571 (patch) | |
tree | 92d782dca26f91e9bb1c1a773b70345ae15a6927 /Rakefile | |
parent | 691c2a67d89af42c1db89cf1791c778cd92fe630 (diff) |
Hard reset after repo fetching
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -56,6 +56,9 @@ task :pull_repos do # without accidentally deleting data `git stash -u` if git_workdir_dirty? `git checkout #{branch}` + + # Reset so that if the repo is cached, the latest commit will be used + `git reset --hard origin/#{branch}` end end end |