forked from importers/git-importer
Compare commits
1 Commits
fix_ininti
...
typo
Author | SHA1 | Date | |
---|---|---|---|
|
17062df04e |
@@ -85,7 +85,7 @@ class Git:
|
|||||||
"""Checkout into the branch HEAD"""
|
"""Checkout into the branch HEAD"""
|
||||||
new_branch = False
|
new_branch = False
|
||||||
if branch not in self.branches():
|
if branch not in self.branches():
|
||||||
self.git_run(["switch", "-q", "--orphan", branch])
|
self.git_run(["branch", "-q", branch, "HEAD"])
|
||||||
new_branch = True
|
new_branch = True
|
||||||
else:
|
else:
|
||||||
ref = f"refs/heads/{branch}"
|
ref = f"refs/heads/{branch}"
|
||||||
@@ -271,7 +271,7 @@ class Git:
|
|||||||
["remote"],
|
["remote"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
).stdout.decode("utf-8"):
|
).stdout.decode("utf-8"):
|
||||||
logger.warning("Not pushing to remote because no 'origin' configured")
|
logging.warning("Not pushing to remote because no 'origin' configured")
|
||||||
return
|
return
|
||||||
|
|
||||||
cmd = ["push"]
|
cmd = ["push"]
|
||||||
|
Reference in New Issue
Block a user