10000 Fixing the error with the clone button by StanleyGoldman · Pull Request #2322 · github/VisualStudio · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Fixing the error with the clone button #2322

Merged
merged 1 commit into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixing the error with the clone button
  • Loading branch information
StanleyGoldman committed Apr 10, 2019
commit 6d7dfd42e369d43f5282291973b5e925dc3c5a70
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public RepositoryCloneViewModel(
var canClone = Observable.CombineLatest(
repository, this.WhenAnyValue(x => x.Path),
(repo, path) => repo != null && !service.DestinationFileExists(path) &&
(!service.DestinationDirectoryExists(path)) || service.DestinationDirectoryEmpty(path));
(!service.DestinationDirectoryExists(path) || service.DestinationDirectoryEmpty(path)));

var canOpen = Observable.CombineLatest(
repository, this.WhenAnyValue(x => x.Path),
Expand Down
0