fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

Sync results in `FileNotFoundException` regarding stashes #2353

Open rhys-vdw opened 3 days ago

rhys-vdw commented 3 days ago

Version: 2.1.0.0

Sync button fails with this issue:

[Internal]: System.IO.FileNotFoundException: Could not find file 'C:\Users\Vivian\enter-the-chronosphere.git\logs\refs\stash'.
File name: 'C:\Users\Vivian\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 Fork.Git.Commands.LeanBranching.LeanBranching.Step0Stash(GitModule gitModule, JobMonitor monitor)

There are no changes (staged or unstaged).

DanPristupov commented 3 days ago

Is this a new repository? We'll try to reproduce this.

rhys-vdw commented 3 days ago

Newly cloned from GitHub, with a fresh install of fork.

We actually had this issue with a different team member about a year ago but she just stopped using sync and it has since gone away. This one was with a new team member today.

DanPristupov commented 3 days ago

Try to create a stash with some change. Then sync should become fixed.