Error using windows git on a sftp-mounted drive

Hi all,
I’m issuing an error using git 2.20.1 on a windows 10 box.
In git-bash trying to launch a ‘git status’ inside a working git repository mounted through NetDrive/sftp I get the following error:

$ git status 
error: unable to open object pack directory: .git/objects/pack: Function not implemented 
fatal: failed to read object 4b79546d46e6e5d69a48b3746978b143bac1aaff: No such device

The same folder is accessible through Samba, and if I mount it through the normal windows 10 tools it works like a charm:

$ git status
Refresh index: 100% (2891/2891), done.
On branch master
Your branch is up to date with 'prod/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

[...]

How can I solve it?

Thanks a lot

Hello.

Thank you for using NetDrive.

Could you attach debug log files to figure out what happened?

After setting the log level to VERBOSE, please reproduce the problem and send us the debug log file :

There is no credential information in the log files.

Sorry for the inconvenience it may caused.

Regards.

Hi,
Thanks for your support, I attached the nd3svc_SFTP log file. To reproduce the problem you have to:

  1. Install git for windows on a win 10 box
  2. Mount a remote linux git-versioned folder through sftp, obviously with netdrive :slight_smile:
  3. Open the git bash in the win box
  4. Cd into the repository
  5. git status (or any other git command you like)

That’s all

Thanks agin
Gabriele

nd3svc_SFTP - test.log (6.3 MB)

I got the file.

I will review it and I will try to reproduce the issue on my environment.

Regards.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.