chiark / gitweb /
supply template argument to mktemp
[topgit.git] / tg-patch.sh
index 04023c05234d938d10acfb112a77554e7c0425f8..48f4d770059bc7e7cb99bd8b005ad1ae1aeb932e 100644 (file)
@@ -29,7 +29,7 @@ echo
 [ -n "$(git grep '^[-]--' "$name" -- ".topmsg")" ] || echo '---'
 
 # Evil obnoxious hack to work around the lack of git diff --exclude
-git_is_stupid="$(mktemp)"
+git_is_stupid="$(mktemp -t tg-patch-changes.XXXXXX)"
 git diff-tree --name-only "$base_rev" "$name" |
        fgrep -vx ".topdeps" |
        fgrep -vx ".topmsg" >"$git_is_stupid" || : # fgrep likes to fail randomly?