mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
'fetch' git repository instead of 'pull'.
'git pull' try to change the repo's HEAD and thus, refuse to operate on a detach branch.
This commit is contained in:
@ -390,7 +390,7 @@ class GitClone(Source):
|
||||
self.buildEnv.run_command(command, self.buildEnv.source_dir, context)
|
||||
|
||||
def _git_update(self, context):
|
||||
self.buildEnv.run_command("git pull", self.git_path, context)
|
||||
self.buildEnv.run_command("git fetch", self.git_path, context)
|
||||
self.buildEnv.run_command("git checkout "+self.git_ref, self.git_path, context)
|
||||
|
||||
def prepare(self):
|
||||
|
Reference in New Issue
Block a user