Skip to content

The sync command is popping a stash every time #1765

@rhys-vdw

Description

@rhys-vdw

After hitting "sync" my colleague was immediately getting a host of conflicts that did not exist. Turns out they were coming from a random stash that already existed.

We were testing with branches that were already at parity with origin/master.

We tried deleting all the stashes (git stash clear), but then sync fails with this error:

[Internal]: System.IO.FileNotFoundException: Could not find file 'W:\enter-the-chronosphere.git\logs\refs\stash'.
File name: 'W:\enter-the-chronosphere.git\logs\refs\stash'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at System.IO.File.ReadAllText(String path)
   at Fork.Git.Commands.LeanBranching.LeanBranching.Step0Stash(GitModule gitModule, JobMonitor monitor)

So now the sync button is unusable.

OS: Windows
Version: 1.80.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions