Mercurial > hg > soundsoftware-site
comparison extra/soundsoftware/export-git.sh @ 1549:28cde511f312 feature_1136
Force flag is needed here
author | Chris Cannam |
---|---|
date | Tue, 12 Jan 2016 17:32:54 +0000 |
parents | bca3b5e5bbf2 |
children | 7d825cbd76c8 |
comparison
equal
deleted
inserted
replaced
1548:fd4cc11ae096 | 1549:28cde511f312 |
---|---|
80 echo | 80 echo |
81 echo "About to run fast export for repo $reponame..." | 81 echo "About to run fast export for repo $reponame..." |
82 | 82 |
83 ( | 83 ( |
84 cd "$gitrepo" | 84 cd "$gitrepo" |
85 "$fastexport" --quiet -r "$hgrepo" -A "$authormap" --hg-hash | 85 |
86 # Force is necessary because git-fast-import (or git) can't handle | |
87 # branches having more than one head ("Error: repository has at | |
88 # least one unnamed head"), which happens from time to time in | |
89 # valid Hg repos. With --force apparently it will just pick one | |
90 # of the two heads arbitrarily, which is also alarming but is | |
91 # more likely to be useful | |
92 "$fastexport" --quiet -r "$hgrepo" -A "$authormap" --hg-hash --force | |
86 ) | 93 ) |
87 | 94 |
88 echo "Fast export done" | 95 echo "Fast export done" |
89 | 96 |
90 done | 97 done |