Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion mytonctrl/mytonctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def check_git(input_args, default_repo, text, default_branch='master'):
#end define

def check_branch_exists(author, repo, branch):
if is_hex(branch):
if len(branch) >= 6 and is_hex(branch):
print('Hex name detected, skip branch existence check.')
return
url = f"https://github.com/{author}/{repo}.git"
Expand Down
4 changes: 2 additions & 2 deletions mytonctrl/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pip3 uninstall -y mytonctrl

# Update code
echo "https://github.com/${author}/${repo}.git -> ${branch}"
git clone --branch ${branch} --recursive https://github.com/${author}/${repo}.git
cd ${repo}
git clone --recursive https://github.com/${author}/${repo}.git
cd ${repo} && git checkout ${branch}
pip3 install -U .

systemctl daemon-reload
Expand Down