git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux git init/clone on Netapp NTFS security style volumes
@ 2024-07-06 19:35 github
  2024-07-07 19:54 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: github @ 2024-07-06 19:35 UTC (permalink / raw)
  To: git

Hello,
 
I'm trying to execute git init and git clone operations on a linux client that mounts a Netapp volume with NTFS Security Style. Meaning the client is Linux based but the filesystem is managed from Windows side - especially linux chmod operations are not permitted.
 
Maybe a new CLI option might be helpful to skip those chmod operations.
 
 
$ git version
git version 2.34.1
 
 
ERROR git clone
$ git clone https://github.com/git/git.git
Cloning into 'git'...
error: chmod on /mnt/git-clone-test/git/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
 
$ git config --global --replace-all core.fileMode false
 
$ git clone https://github.com/git/git.git
Cloning into 'git'...
error: chmod on /mnt/git-clone-test/git/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
 
 
ERROR git init
$ git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
error: chmod on /mnt/git-init-test/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
 
$ git config --global --replace-all core.fileMode false
$ git init
error: chmod on /mnt/git-init-test/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.repositoryformatversion' to '0'
 
$ cat .git/config
[core]
        repositoryformatversion = 0
 
$ git status
fatal: not a git repository (or any parent up to mount point /data/care)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 
 
Thanks&Best
 
JH

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

end of thread, other threads:[~2024-07-08 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-06 19:35 linux git init/clone on Netapp NTFS security style volumes github
2024-07-07 19:54 ` brian m. carlson
2024-07-08 16:50   ` Aw: " github
2024-07-08 21:46     ` brian m. carlson

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).