Skip to content

Commit

Permalink
init repo if upstream not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaxun Yang <[email protected]>
  • Loading branch information
FlyGoat committed Jan 13, 2025
1 parent 2f46045 commit 7e9eb0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def update(module_data):
u("Updating", repo_root, root)
if not os.path.exists(repo_root):
os.makedirs(repo_root)
subprocess_check_call(['git', 'init', '-b', 'master'], cwd=repo_root)

for d in dirs:
path_d = os.path.join(path, d)
Expand Down

0 comments on commit 7e9eb0d

Please sign in to comment.