lib/deploy_changes/commit.rb in deploy_changes-0.1.0 vs lib/deploy_changes/commit.rb in deploy_changes-0.1.1
- old
+ new
@@ -13,9 +13,11 @@
File.write(last_deploy_commit_file, sha1)
end
def last_commit
+ return unless File.exist?(last_deploy_commit_file)
+
File.read(last_deploy_commit_file).strip
end
private