Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCH] Be more careful with objects directory permissions on clone

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:44:34

Mark Hills schrieb:
On Mon, 5 May 2008, Johannes Sixt wrote:
quoted
Mark Hills schrieb:
quoted
         cd "$repo" &&
-        find objects -depth -print | cpio $cpio_quiet_flag -pumd$l
"$GIT_DIR/" || \
+        # Create dirs using umask and permissions and destination
+        find objects -type d -print | (cd "$GIT_DIR" && xargs mkdir
-p) &&
+        # Copy 0444 permissions on files
+        find objects -type f -print | cpio $cpio_quiet_flag -pumd$l
"$GIT_DIR/" || \
Wouldn't that be better:

    find objects ! -type d -print | cpio ...

?
This was my first suggestion, unfortunately it shows up broken behaviour
in all but the latest version of cpio. It creates 0700 directory
permissions which is even worse.
Sorry, I should have mentioned that I meant to keep the 'find | xargs
mkdir' and replace only the second 'find | cpio'.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help