@@ -356,12 +356,14 @@ MCGitBasedNetworkRepository >> canUpgradeTo: anMCGitBasedRepository [
356
356
357
357
{ #category : ' descriptions' }
358
358
MCGitBasedNetworkRepository >> description [
359
- | desc |
360
- desc := self class description , self projectPath , ' :'
361
- , self projectVersionEscaped.
362
- self repoPath isEmpty
363
- ifTrue: [ ^ desc ].
364
- ^ desc , ' /' , self repoPath
359
+
360
+ | desc |
361
+ desc := self class description , self projectPath.
362
+ self projectVersionEscaped ifNotNil: [ :projectVersionEscaped |
363
+ desc := desc , ' :' , projectVersionEscaped ].
364
+
365
+ self repoPath isEmpty ifTrue: [ ^ desc ].
366
+ ^ desc , ' /' , self repoPath
365
367
]
366
368
367
369
{ #category : ' accessing' }
@@ -540,11 +542,14 @@ MCGitBasedNetworkRepository >> projectVersion: aString [
540
542
541
543
{ #category : ' accessing' }
542
544
MCGitBasedNetworkRepository >> projectVersionEscaped [
543
- | pv |
544
- pv := self projectVersion.
545
- (projectVersion includes: $/ )
546
- ifTrue: [ ^ pv copyReplaceAll: ' /' with: ' \/' ].
547
- ^ pv
545
+
546
+ | pv |
547
+ pv := self projectVersion.
548
+ pv ifNil: [ ^ nil ].
549
+
550
+ (projectVersion includes: $/ ) ifTrue: [
551
+ ^ pv copyReplaceAll: ' /' with: ' \/' ].
552
+ ^ pv
548
553
]
549
554
550
555
{ #category : ' accessing' }
0 commit comments