Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

in Windows, pulling from repo that has symlinks results in ErrUnstagedChanges #801

Open
@808codist

Description

@808codist

Steps to reproduce:

  1. Create a repo with symlinks on github (or other git repo host)
  2. On Windows machine, use _examples/clone/main.go to clone the repo
    • I ran as Administrator
    • I modified source to set CloneOptions.Auth
  3. Without using clone from previous step, push a new commit to the repo
  4. Back on Windows machine, use _examples/pull/main.go to pull just-pushed commit
    • I ran as Administrator
    • I modified source to set PullOptions.Auth
  5. Notice worktree contains unstaged changes error message

Seems to be Windows-specific, since I could not reproduce on Linux (CentOS), with same modified source.

details:

  • go version go1.10 windows/amd64
  • Windows 10 Version 1709 (OS Build 16299.309)
  • gopkg.in/src-d/go-git.v4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions