X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fcached-converter.sh;h=7e9d3af807527c7bb7e10538e3d8f22bd7383380;hp=0eab3d6946f5ae9fc10048afd7704ffb38a35c97;hb=5fa6c64546e1bef97d38e624cc87800b99f457fe;hpb=fc00291a3cabd0fc24767a221a9231f27c1a3e97 diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index 0eab3d69..7e9d3af8 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -49,9 +49,9 @@ cached() sum=$lastinfileshash else if [ -n "$git_src_repo" ]; then - sum=`( cd "$git_src_repo"; git rev-parse HEAD:"$infile1" )` + sum=`( cd "$git_src_repo"; git rev-parse --revs-only HEAD:"$infile1" | grep . ) || git hash-object "$infile1"` if [ -n "$infile2" ]; then - sum=`( cd "$git_src_repo"; git rev-parse HEAD:"$infile2" )` + sum=$sum`( cd "$git_src_repo"; git rev-parse --revs-only HEAD:"$infile2" | grep . ) || git hash-object "$infile2"` fi else sum=`git hash-object "$infile1"`