Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions mytonctrl/mytonctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,11 @@ def check_vport(local, ton):
#end define


def check_git(input_args, default_repo, text):
def check_git(input_args, default_repo, text, default_branch='master'):
src_dir = "/usr/src"
git_path = f"{src_dir}/{default_repo}"
fix_git_config(git_path)
default_author = "ton-blockchain"
# default_branch = "master"
default_branch = "mytonctrl2"

# Get author, repo, branch
local_author, local_repo = get_git_author_and_repo(git_path)
Expand Down Expand Up @@ -341,7 +339,7 @@ def check_branch_exists(author, repo, branch):

def Update(local, args):
repo = "mytonctrl"
author, repo, branch = check_git(args, repo, "update")
author, repo, branch = check_git(args, repo, "update", default_branch='mytonctrl2')

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