mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 23:37:18 +00:00
force git run from the same dir to clone
This commit is contained in:
parent
5b1f5a8473
commit
dd521b49b5
@ -86,7 +86,8 @@ class Sources:
|
|||||||
Sources.logger.warning("%s is not initialized, but no remote provided", sources_dir)
|
Sources.logger.warning("%s is not initialized, but no remote provided", sources_dir)
|
||||||
else:
|
else:
|
||||||
Sources.logger.info("clone remote %s to %s", remote, sources_dir)
|
Sources.logger.info("clone remote %s to %s", remote, sources_dir)
|
||||||
Sources._check_output("git", "clone", remote, str(sources_dir), exception=None, logger=Sources.logger)
|
Sources._check_output("git", "clone", remote, str(sources_dir),
|
||||||
|
exception=None, cwd=sources_dir, logger=Sources.logger)
|
||||||
# and now force reset to our branch
|
# and now force reset to our branch
|
||||||
Sources._check_output("git", "checkout", "--force", Sources._branch,
|
Sources._check_output("git", "checkout", "--force", Sources._branch,
|
||||||
exception=None, cwd=sources_dir, logger=Sources.logger)
|
exception=None, cwd=sources_dir, logger=Sources.logger)
|
||||||
|
Loading…
Reference in New Issue
Block a user