Skip to content

Commit 932ada2

Browse files
committed
fix update commit
1 parent dc45cd2 commit 932ada2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def check_git(input_args, default_repo, text, default_branch='master'):
334334
#end define
335335

336336
def check_branch_exists(author, repo, branch):
337-
if is_hex(branch):
337+
if len(branch) >= 6 and is_hex(branch):
338338
print('Hex name detected, skip branch existence check.')
339339
return
340340
url = f"https://github.com/{author}/{repo}.git"

mytonctrl/scripts/update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pip3 uninstall -y mytonctrl
3737

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

4444
systemctl daemon-reload

0 commit comments

Comments
 (0)