Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Doe <axil@gitlab.com>2017-12-20 18:05:47 +0300
committerJohn Doe <axil@gitlab.com>2017-12-20 18:13:41 +0300
commit246a09269d5d32fbbd0ea4a80e06d613ee14b571 (patch)
tree92d782dca26f91e9bb1c1a773b70345ae15a6927 /Rakefile
parent691c2a67d89af42c1db89cf1791c778cd92fe630 (diff)
Hard reset after repo fetching
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index d04d8ad4..342edfe4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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