git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFD] git stash over OpenBSD/Linux NFS - cp -p breakage
@ 2011-03-15 10:08 Jakob Pfender
  2011-03-15 10:58 ` Johannes Sixt
  0 siblings, 1 reply; 9+ messages in thread
From: Jakob Pfender @ 2011-03-15 10:08 UTC (permalink / raw)
  To: git; +Cc: casey, jon.seymour, Junio C Hamano

We have an NFS setup with Linux machines mounting an NFS that is hosted 
on an OpenBSD server. Recently, we discovered git-stash breaking with:

$ git stash
cp: preserving permissions for 
`/home/jpfender/stashtest/.git/.git-stash.3056-index': Operation not 
supported
Cannot save the current worktree state

This was discovered to be caused by a bug in cp that causes 'cp -p' to 
fail in this particular NFS setup - preserving permissions in an NFS 
shared across Linux and OpenBSD machines doesn't work.

I looked at git-stash.sh and could not discover a reason why it had to 
use 'cp -p'. I patched it to use only cp without preserving permissions, 
and everything seemed to work fine. All stash tests succeeded (bar two 
known breakages).

So my question is: Does git-stash really need 'cp -p'? Is it safe to remove?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-16  8:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 10:08 [RFD] git stash over OpenBSD/Linux NFS - cp -p breakage Jakob Pfender
2011-03-15 10:58 ` Johannes Sixt
2011-03-15 12:00   ` Jakob Pfender
2011-03-15 12:37     ` [PATCH] stash: copy the index using --index-output instead of cp -p Johannes Sixt
2011-03-15 19:28       ` Junio C Hamano
2011-03-15 19:53         ` Bert Wesarg
2011-03-16  8:12           ` Johannes Sixt
2011-03-16  8:14             ` [PATCH 1/2] stash: fix incorrect quoting in cleanup of temporary files Johannes Sixt
2011-03-16  8:18             ` [PATCH 2/2 v2] stash: copy the index using --index-output instead of cp -p Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).