tag 698490 +patch
thanks

Assuming I understood the situation correctly, this might be a plausible
fix:

>From 679c67c615947b44aafa969f00ea00f9ed997e4e Mon Sep 17 00:00:00 2001
From: Rob Browning <r...@defaultvalue.org>
Date: Sat, 19 Jan 2013 10:44:34 -0600
Subject: [PATCH 1/1] Create git-effort temp file via mktemp and remove it on
 EXIT.

---
 bin/git-effort |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/git-effort b/bin/git-effort
index a3bb50e..72ad95d 100755
--- a/bin/git-effort
+++ b/bin/git-effort
@@ -1,9 +1,11 @@
 #!/bin/bash
 
-tmp=/tmp/.git-effort
+tmp="$(mktemp --suffix -git-effort)"
 above='0'
 color=
 
+trap "rm -f '$tmp'" EXIT
+
 #
 # get date for the given <commit>
 #
@@ -122,4 +124,4 @@ heading
 effort $files | tee $tmp && sort_effort
 echo
 
-show_cursor
\ No newline at end of file
+show_cursor
-- 
1.7.10.4

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Reply via email to