Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9561ee

Browse filesBrowse files
committed
fix(bare repo): Skip git status and git stash list
Refs: #12165 (cherry picked from commit f4714f4)
1 parent 4e6cd87 commit c9561ee
Copy full SHA for c9561ee

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/app/GitUI/CommandsDialogs/BrowseDialog/GitStatusMonitor.cs

Copy file name to clipboardExpand all lines: src/app/GitUI/CommandsDialogs/BrowseDialog/GitStatusMonitor.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ private void Update()
471471
return;
472472
}
473473

474-
if (!Directory.Exists(_workTreeWatcher.Path))
474+
if (!Directory.Exists(_workTreeWatcher.Path) || Module.IsBareRepository())
475475
{
476476
// The directory no longer exists, watcher cannot be enabled
477477
return;

‎src/app/GitUI/UserControls/RevisionGrid/RevisionGridControl.cs

Copy file name to clipboardExpand all lines: src/app/GitUI/UserControls/RevisionGrid/RevisionGridControl.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ public void PerformRefreshRevisions(Func<RefsFilter, IReadOnlyList<IGitRef>> get
926926

927927
// Get the "main" stash commit, including the reflog selector
928928
Lazy<IReadOnlyCollection<GitRevision>> getStashRevs = new(() =>
929-
!AppSettings.ShowStashes
929+
!AppSettings.ShowStashes || Module.IsBareRepository()
930930
? Array.Empty<GitRevision>()
931931
: new RevisionReader(capturedModule).GetStashes(cancellationToken));
932932

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.