Switch branch to 'master' before pulling.
This commit is contained in:
parent
30d3177228
commit
edc91d7f4d
1 changed files with 1 additions and 0 deletions
|
|
@ -273,6 +273,7 @@ proc downloadPkg(pkg: TPackage, verRange: PVersionRange): string =
|
||||||
echo("Executing git...")
|
echo("Executing git...")
|
||||||
if existsDir(downloadDir / ".git"):
|
if existsDir(downloadDir / ".git"):
|
||||||
cd downloadDir:
|
cd downloadDir:
|
||||||
|
doCmd("git checkout master")
|
||||||
doCmd("git pull")
|
doCmd("git pull")
|
||||||
else:
|
else:
|
||||||
removeDir(downloadDir)
|
removeDir(downloadDir)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue