Skip to content

Commit

Permalink
Ensure clone directory is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed May 23, 2024
1 parent 7e01464 commit da6717c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ requestFSReferenceForName: aString
defaultDirectoryReference ensureCreateDirectory.
chosen := UIManager default chooseDirectory: 'Repository location:' from: defaultDirectory.
(defaultDirectoryExisted not and: [chosen ~= defaultDirectory]) ifTrue: [defaultDirectoryReference delete].
^ chosen ifNotNil: #asFSReference
^ chosen ifNotNil: [ | reference |
reference := chosen asFSReference.
reference children ifNotEmpty: [
self inform: 'Please choose an empty directory.'.
^ self requestFSReferenceForName: aString].
reference]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"registeredNames" : "mad 9/19/2023 12:16",
"registry" : "mad 9/19/2023 11:59",
"registry:" : "mad 9/19/2023 11:59",
"requestFSReferenceForName:" : "mad 11/13/2023 12:55",
"requestFSReferenceForName:" : "mad 5/23/2024 21:15",
"requestUnregisteredName" : "mad 11/13/2023 12:01",
"requestUnregisteredNameFrom:" : "mad 12/8/2023 19:56",
"requestUnregisteredNameFrom:title:" : "mad 12/8/2023 19:56",
Expand Down

0 comments on commit da6717c

Please sign in to comment.