diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-09-16 00:47:30 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-16 00:47:30 -0700 |
commit | ddf41044322825844b54a922dec2775ff6d61926 (patch) | |
tree | d7266e3b8e3b28d1577037a375c96f226e9166f8 | |
parent | fb0863a528c1503cba1a9b8bf8da11a8e0b271aa (diff) | |
parent | d8bdc49265559786533d7f7377b2c39038dd6309 (diff) | |
download | git-ddf41044322825844b54a922dec2775ff6d61926.tar.gz |
Merge branch 'jc/maint-template-permbits'
* jc/maint-template-permbits:
Fix permission bits on sources checked out with an overtight umask
-rw-r--r-- | templates/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/Makefile b/templates/Makefile index 0722a926f7..a12c6e214e 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -31,9 +31,11 @@ boilerplates.made : $(bpsrc) dir=`expr "$$dst" : '\(.*\)/'` && \ mkdir -p blt/$$dir && \ case "$$boilerplate" in \ - *--) ;; \ - *) cp -p $$boilerplate blt/$$dst ;; \ - esac || exit; \ + *--) continue;; \ + esac && \ + cp $$boilerplate blt/$$dst && \ + if test -x "blt/$$dst"; then rx=rx; else rx=r; fi && \ + chmod a+$$rx "blt/$$dst" || exit; \ done && \ date >$@ |