Skip to content

Commit

Permalink
Adding git reset after unfreezing
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Mar 12, 2009
1 parent 81a7df2 commit 4eb0038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion externals.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'externals'
s.version = '0.1.3'
s.version = '0.1.4'
s.date = '2008-03-11'

s.summary = "Work on git externals without affecting others"
Expand Down
3 changes: 3 additions & 0 deletions lib/externals/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def unfreezify
FileUtils.mv(".git", repo_path)
FileUtils.rm("#{@name}.git.tgz")
end
Dir.chdir(repo_path) do
`git reset --hard`
end
puts "#{@name} unfrozen"
else
install
Expand Down

0 comments on commit 4eb0038

Please sign in to comment.