Explorar el Código

Fix Paddle script branch

Lutz Roeder hace 7 años
padre
commit
e2599117db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/paddle

+ 1 - 1
tools/paddle

@@ -27,7 +27,7 @@ git_sync () {
     mkdir -p "${third_party}"
     if [ -d "${third_party}/${1}" ]; then
         git -C "${third_party}/${1}" fetch -p --quiet
-        git -C "${third_party}/${1}" reset --quiet --hard origin/develop
+        git -C "${third_party}/${1}" reset --quiet --hard origin/$(git -C "${third_party}/${1}" rev-parse --abbrev-ref HEAD)
     else
         echo "Clone ${2}..."
         git -C "${third_party}" clone --recursive ${2} ${1}