Skip to content

Commit a4b8bf2

Browse files
authored
Merge pull request #272 from yungwine/mytonctrl2
add default branch param to check_git
2 parents 401e0e2 + 722411b commit a4b8bf2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mytonctrl/mytonctrl.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,11 @@ def check_vport(local, ton):
293293
#end define
294294

295295

296-
def check_git(input_args, default_repo, text):
296+
def check_git(input_args, default_repo, text, default_branch='master'):
297297
src_dir = "/usr/src"
298298
git_path = f"{src_dir}/{default_repo}"
299299
fix_git_config(git_path)
300300
default_author = "ton-blockchain"
301-
# default_branch = "master"
302-
default_branch = "mytonctrl2"
303301

304302
# Get author, repo, branch
305303
local_author, local_repo = get_git_author_and_repo(git_path)
@@ -341,7 +339,7 @@ def check_branch_exists(author, repo, branch):
341339

342340
def Update(local, args):
343341
repo = "mytonctrl"
344-
author, repo, branch = check_git(args, repo, "update")
342+
author, repo, branch = check_git(args, repo, "update", default_branch='mytonctrl2')
345343

346344
# Run script
347345
update_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/update.sh')

0 commit comments

Comments
 (0)