[sysadmin-bin: 15/168] Set umask before writing to gnome_pushlog



commit f7ab7547db2a187e658a7c707bb2b9147000b92b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Feb 9 12:30:03 2009 -0500

    Set umask before writing to gnome_pushlog
    
    git apparently sets the umask to 0022 before running the hooks. Change
    umask to 0002 so gnome_pushlog is created group writable.

 log-push |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/log-push b/log-push
index 0e5594d..5a539bb 100755
--- a/log-push
+++ b/log-push
@@ -38,6 +38,8 @@ done
 # successfuly created lock file
 trap "rm -f $LOCK_FILE; exit" INT TERM EXIT
 
+umask 0002
+
 while read oldrev newrev refname
 do
 	echo "$oldrev	$newrev	$refname	$user	$date" >> $LOG_FILE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]