Skip to content

Commit

Permalink
add only branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio committed Feb 22, 2024
1 parent 45d4656 commit 72c4eaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion advanced/Scripts/speedtestmod/mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ setTags() {
local path=${1:-}
local name=${2:-}
local branch="${3:-master}"

if [ ! -z "$path" ]; then
cd "$path"
git fetch origin $branch:refs/remotes/origin/$branch -q
Expand Down Expand Up @@ -60,7 +61,7 @@ download() {
git config --global --add safe.directory "$dest"
git remote -v | grep -q "old" || git remote rename origin old
git remote -v | grep -q "origin" && git remote remove origin
git remote add origin "$url"
git remote add -t "$branch" origin "$url"
elif [ -d .git/refs/remotes/old ]; then
git remote remove origin
git remote rename old origin
Expand Down

0 comments on commit 72c4eaa

Please sign in to comment.