Git Fetch Error with UNC

后端 未结 2 712
北海茫月
北海茫月 2021-01-16 16:23

I have a GIT backup script that runs perfectly when executed from command line (it\'s a daily backup of our main GIT rep):

@echo off
rem -- Set Parameters
re         


        
2条回答
  •  粉色の甜心
    2021-01-16 16:24

    Git does work with UNC paths but typically it is more reliable to use them as Unixy paths - so git clone //backupnas/backup/repo.git for instance.

    When running as a task - check that the permissions will allow your task to see the remote path with read access. Other than that - lots of echo's in the script and test the result codes for running commands. For the most recent version of msysGit you may not require the 'call git' anymore as the wrapper git.cmd got changed to a git.exe to resolve some quoting problems with ^ characters.

提交回复
热议问题