Skip to content

Commit f22b7b3

Browse files
committed
(maint) Use git reset
Previously the vendor script used git checkout however this casued some issues in the Yard gem. This commit changes to use git reset which will achieve the same result but force any changes without error.
1 parent 450b9ac commit f22b7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ task :gem_revendor do
100100
sh "git clone #{vendor[:github_repo]} #{gem_dir}"
101101
Dir.chdir(gem_dir) do
102102
sh 'git fetch origin'
103-
sh "git checkout #{vendor[:github_ref]}"
103+
sh "git reset --hard #{vendor[:github_ref]}"
104104
end
105105

106106
# Cleanup the gem directory...

0 commit comments

Comments
 (0)