equal
deleted
inserted
replaced
361 $ cat foo |
361 $ cat foo |
362 sub |
362 sub |
363 |
363 |
364 $ cd ../.. |
364 $ cd ../.. |
365 |
365 |
|
366 convert the revision removing '.gitmodules' itself (and related |
|
367 submodules) |
|
368 |
|
369 $ cd git-repo6 |
|
370 $ git rm .gitmodules |
|
371 rm '.gitmodules' |
|
372 $ git rm --cached git-repo5 |
|
373 rm 'git-repo5' |
|
374 $ commit -a -m 'remove .gitmodules and submodule git-repo5' |
|
375 $ cd .. |
|
376 |
|
377 $ hg convert -q git-repo6 git-repo6-hg |
|
378 $ hg -R git-repo6-hg tip -T "{desc|firstline}\n" |
|
379 remove .gitmodules and submodule git-repo5 |
|
380 $ hg -R git-repo6-hg tip -T "{file_dels}\n" |
|
381 .hgsub .hgsubstate |
|
382 |
366 damaged git repository tests: |
383 damaged git repository tests: |
367 In case the hard-coded hashes change, the following commands can be used to |
384 In case the hard-coded hashes change, the following commands can be used to |
368 list the hashes and their corresponding types in the repository: |
385 list the hashes and their corresponding types in the repository: |
369 cd git-repo4/.git/objects |
386 cd git-repo4/.git/objects |
370 find . -type f | cut -c 3- | sed 's_/__' | xargs -n 1 -t git cat-file -t |
387 find . -type f | cut -c 3- | sed 's_/__' | xargs -n 1 -t git cat-file -t |