]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
we still have to checkout in the screenshot system
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index ccfdfa69ff9935690daedb6952808493031ffe75..17ff0e77a4148f3afe63b3a2ecfef12334a582d2 100755 (executable)
@@ -203,10 +203,6 @@ screenshotthemap()
                continue
        fi
 
-       git reset --hard
-       git clean -xfd
-       git checkout -f "$commithash"
-
        rm -rf ~/.xonotic
        (
                cd ../..
@@ -319,6 +315,10 @@ case "$1" in
                                continue
                        fi
 
+                       git reset --hard
+                       git clean -xfd
+                       git checkout -f "$commithash"
+
                        rundownload
                        if $getthemap_fail; then
                                continue