Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add files even if they would be ignored by git

This would stop git from picking up additions that would be ignored by a
global gitignore file, leaving the repo in a confused state (the darcs
mirror has put changes the in the working dir, the git repo doesn't have
them, and git can't commit because it thinks the working dir is clean).
  • Loading branch information...
commit 53f23cce0c2ef942e98dea971545ee4644234231 1 parent 5e8f292
@jmah jmah authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  darcs-to-git
2  darcs-to-git
@@ -317,7 +317,7 @@ class DarcsPatch
run("git", "tag", "-a", "-m", git_commit_message, git_tag_name)
if (new_files = git_new_files).any?
- run(*(["git", "add"] + new_files))
+ run(*(["git", "add", "-f"] + new_files))
if git_changed_files.any? || new_files.any?
run("git", "commit", "-a", "-m", git_commit_message)
Please sign in to comment.
Something went wrong with that request. Please try again.