Permalink
Browse files

Check only once if commit already in git repo.

  • Loading branch information...
1 parent 6133a71 commit 32c084fc4618f63489133dcfb18974b72344301d @thomie thomie committed Aug 15, 2010
Showing with 1 addition and 6 deletions.
  1. +1 −6 darcs-to-git
View
@@ -279,7 +279,7 @@ class DarcsPatch
# Return committish for corresponding patch in current git repo, or false/nil
def id_in_git_repo
- @git_commit ||= COMMIT_HISTORY.find_git_commit(is_tag, git_tag_name, identifier)
+ COMMIT_HISTORY.find_git_commit(is_tag, git_tag_name, identifier)
end
def pull_and_apply
@@ -289,11 +289,6 @@ class DarcsPatch
puts "AUTHOR: #{author} => #{git_author_name} <#{git_author_email}>"
puts "=" * 80
- if id_in_git_repo
- puts "Already imported to git as #{id_in_git_repo}"
- return
- end
-
pull
system("git", "status")
commit_to_git_repo

0 comments on commit 32c084f

Please sign in to comment.