![]() I can have my script query and cd to the repo root before running other commands, or do it myself first, but those are just workarounds. ![]() I can provide a List Of Things I've Tried That Didn't Work. I'm using git version 1.9.4.msysgit.2 on Windows 7 with the repo files in an external folder. I don't think you can get git status to show absolute paths, but you can configure it to show paths relative to the git root, see man git-status for details: If the config variable status.relativePaths is set to false, then all paths shown are relative to the repository root, not to the current directory. Dependencies on unpublished packages Path dependency: A Flutter app can depend on a package using a file system path: dependency. So how can I get actual relative paths, or even absolute paths? Am I missing something basic? Instead, with the repo based in myproject\, every combination of options I've tried has yielded only to be able to hand that off to other tools that I want to invoke on newly-changed files. C:\projects\myproject\config\module\feature.src.To fix for everyone on the computer, pass the /M flag to setx. To fix for yourself, use: setx GITSSH C:WindowsSystem32OpenSSHssh.exe. Git, by default, uses its own bundled ssh.exe on Windows. If I've got a changed file at C:\projects\myproject\config\module\feature.src, and I'm sitting at a command prompt in C:\projects\myproject\web\somepage, then I'd need a path like either of these: Now that OpenSSH is included in Windows 10, the answer to solving this is to tell git to use OpenSSH. Git -c status.relativePaths=true status -short ![]() Use the Windows Subsystem for Linux to check this out, and optionally rename the paths so that they dont contain trailing spaces. invalid mount config for type 'volume': invalid mount path: C:/Program Files/Git/data/txt mount path must be absolute. This question mentioned the relativePaths option but it has no effect on output when given as a command option: Ask the owner of the repository to change the path names. This way absolute windows paths can be used, like in this case: /c/Users/nmschulte. I wish to use the output from git status in a script but, because the output is always giving repo-relative file paths, other commands can't find their args. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |