Permalink
Browse files

It's better to fail if we can't read the darcs_patches file.

  • Loading branch information...
1 parent 560a4e8 commit 72fad420d8d3167a9ac69a6e5817cca013392508 @nominolo nominolo committed May 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 darcs-to-git
View
@@ -221,7 +221,7 @@ class DarcsPatch
output_of("git-rev-list", "--max-count=1", "tags/#{git_tag_name}").strip
else
if $darcs_patches_in_git.nil? then
- $darcs_patches_in_git = (YAML.load_file("#{GIT_PATCHES}") or {})
+ $darcs_patches_in_git = YAML.load_file("#{GIT_PATCHES}")
end
$darcs_patches_in_git[identifier];
end

0 comments on commit 72fad42

Please sign in to comment.