Skip to content

GitAdd has troubles with new directories #5

@kubaPod

Description

@kubaPod

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions