Git checkout is now forced.
This has been done to fix an issue on Windows. The issue is that Git may think that line endings have been changed straight after a clone and thus disallow the checkout because "local changes are present".
This commit is contained in:
parent
7e2d46a52c
commit
422f247cb3
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,10 @@ proc doCheckout(meth: TDownloadMethod, downloadDir, branch: string) =
|
|||
case meth
|
||||
of TDownloadMethod.Git:
|
||||
cd downloadDir:
|
||||
doCmd("git checkout " & branch)
|
||||
# Force is used here because local changes may appear straight after a
|
||||
# clone has happened. Like in the case of git on Windows where it
|
||||
# messes up the damn line endings.
|
||||
doCmd("git checkout --force " & branch)
|
||||
of TDownloadMethod.Hg:
|
||||
cd downloadDir:
|
||||
doCmd("hg checkout " & branch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue