Skip to content

Commit

Permalink
Merge pull request #12 from kmels/master
Browse files Browse the repository at this point in the history
If DARCS_VERSION > 2.8.1, use --hashed instead of --old-fashioned-inventory
  • Loading branch information
purcell committed Jun 5, 2012
2 parents 0be8ed0 + af69a46 commit 65af735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion darcs-to-git
Expand Up @@ -491,7 +491,11 @@ unless File.directory?("_darcs")
darcs_init << "--darcs-2"
elsif DARCS_VERSION >= [2, 0, 0]
puts "Using legacy darcs inventory format to match upstream repo"
darcs_init << "--old-fashioned-inventory"
if DARCS_VERSION >= [2, 8, 1]
darcs_init << "--hashed"
else
darcs_init << "--old-fashioned-inventory"
end
end
run(*darcs_init)

Expand Down

0 comments on commit 65af735

Please sign in to comment.