WolframResearch / GitLink

Git integration for the Wolfram Language
Other
116 stars 21 forks source link

GitAdd has troubles with new directories #5

Open kubaPod opened 6 years ago

kubaPod commented 6 years ago

V11.2 V11.1 Win7

Let's create a test repo:

<< GitLink`
dir = FileNameJoin[{$UserDocumentsDirectory, "Test2"}];
CreateDirectory[
    FileNameJoin[{dir, "sub"}], CreateIntermediateDirectories -> True
];
Export[
    FileNameJoin[{dir, "sub", "test.m"}], "Print@\"test\"", "Text"
];
repo = GitInit@dir;
GitStatus@repo
GitAdd[repo, All]

<|"New" -> {"sub\"}, ...|> GitAdd::gitoperationfailed: A git operation failed with the message "Invalid path: 'sub/'". {}

But if I run git add sub/ from a terminal, it works. Hope it is not another silly mistake I've made.