Browse Source

ShellCheck correction

* Prevent quote missing
* Escace litteral /
svn/root/trunk
cam.lafit 3 years ago
parent
commit
cf299ddf6c
  1. 4
      git_loader.sh

4
git_loader.sh

@ -48,7 +48,7 @@ function clone_git() {
git -C "$repo_name" config --add remote.origin.fetch "+refs/svn/map:refs/notes/commits" >/dev/null 2>&1
git -C "$repo_name" fetch --all -t >/dev/null 2>&1
if [[ "$?" != "0" ]]; then
git -C "$repo_name" config --unset-all remote.origin.fetch "\+refs\/svn\/map:refs\/notes\/commits"
git -C "$repo_name" config --unset-all remote.origin.fetch "\\+refs\\/svn\\/map:refs\\/notes\\/commits"
git -C "$repo_name" fetch --all -t >/dev/null 2>&1
fi
git -C "$repo_name" reset --hard "$version" >/dev/null 2>&1
@ -56,7 +56,7 @@ function clone_git() {
git -C "$repo_name" checkout --orphan orphan
git -C "$repo_name" reset --hard
else
git -C "$repo_name" branch -u $version >/dev/null 2>&1
git -C "$repo_name" branch -u "$version" >/dev/null 2>&1
fi

Loading…
Cancel
Save