lib/cookbook-release/git-utilities.rb in cookbook-release-1.1.6 vs lib/cookbook-release/git-utilities.rb in cookbook-release-1.1.7

- old
+ new

@@ -17,10 +17,10 @@ } @g = Git.open(cwd) end def self.git?(dir) - !@g.nil? + File.directory?(::File.join(dir, '.git')) end def reset_command(new_version) remote = choose_remote "git tag -d #{new_version} ; git push #{remote} :#{new_version}"