git/list[1] front-page[2] threads[3] people[4] search[5] about
 

linux git init/clone on Netapp NTFS security style volumes

From
Ggithub@online.ms <github@online.ms>
Date
Jul 6, 2024, 19:35 UTC
Message-ID
<trinity-ea5945a3-0663-4e48-b995-913003b5e932-1720294530422@msvc-mesg-web002>
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
Next: brian m. carlson
Message 1 of 4 in “linux git init/clone on Netapp NTFS security style volumes”
  1. github@online.msJul 6, 2024
  2. brian m. carlsonJul 7, 2024
  3. Aw: Re: linux git init/clone on Netapp NTFS security style volumesgithub@online.ms, Jul 8, 2024
  4. brian m. carlsonJul 8, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.