Skip to content

Do not set git repo version if not specified #18167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ MCGitBasedNetworkRepository class >> cacheDirectoryPath: aString [
self cacheDirectory: (aString ifNotEmpty: [ aString asFileReference ])
]

{ #category : 'accessing' }
MCGitBasedNetworkRepository class >> defaultBranchCacheKey [

^ '-default-branch-'
]

{ #category : 'private' }
MCGitBasedNetworkRepository class >> defaultCacheDirectory [

Expand All @@ -77,7 +83,7 @@ MCGitBasedNetworkRepository class >> downloadCache [

{ #category : 'accessing' }
MCGitBasedNetworkRepository class >> downloadCacheKey: projectPath version: versionString [
^ projectPath , ':::' , versionString
^ projectPath , ':::' , (versionString ifNil: [ self defaultBranchCacheKey ])
]

{ #category : 'utilities' }
Expand Down Expand Up @@ -339,7 +345,7 @@ MCGitBasedNetworkRepository >> asRepositorySpecFor: aMetacelloMCProject [
MCGitBasedNetworkRepository >> calculateRepositoryDirectory [

| directory |
directory := self class projectDirectoryFrom: self projectPath version: self projectVersion.
directory := self class projectDirectoryFrom: self projectPath version: self projectVersionPath.
self repoPath ifNotEmpty: [ directory := directory resolveString: self repoPath ].
^ directory
]
Expand All @@ -356,12 +362,14 @@ MCGitBasedNetworkRepository >> canUpgradeTo: anMCGitBasedRepository [

{ #category : 'descriptions' }
MCGitBasedNetworkRepository >> description [
| desc |
desc := self class description , self projectPath , ':'
, self projectVersionEscaped.
self repoPath isEmpty
ifTrue: [ ^ desc ].
^ desc , '/' , self repoPath

| desc |
desc := self class description , self projectPath.
self projectVersionEscaped ifNotNil: [ :projectVersionEscaped |
desc := desc , ':' , projectVersionEscaped ].

self repoPath isEmpty ifTrue: [ ^ desc ].
^ desc , '/' , self repoPath
]

{ #category : 'accessing' }
Expand Down Expand Up @@ -516,7 +524,6 @@ MCGitBasedNetworkRepository >> projectTagsUrlFor: aProjectPath [
{ #category : 'accessing' }
MCGitBasedNetworkRepository >> projectVersion [

(projectVersion isNil or: [ projectVersion isEmpty ]) ifTrue: [ projectVersion := 'master' ].
^ projectVersion
]

Expand All @@ -541,11 +548,20 @@ MCGitBasedNetworkRepository >> projectVersion: aString [

{ #category : 'accessing' }
MCGitBasedNetworkRepository >> projectVersionEscaped [
| pv |
pv := self projectVersion.
(projectVersion includes: $/)
ifTrue: [ ^ pv copyReplaceAll: '/' with: '\/' ].
^ pv

| pv |
pv := self projectVersion.
pv ifNil: [ ^ nil ].

(projectVersion includes: $/) ifTrue: [
^ pv copyReplaceAll: '/' with: '\/' ].
^ pv
]

{ #category : 'accessing' }
MCGitBasedNetworkRepository >> projectVersionPath [

^ projectVersion ifNil: [ self class defaultBranchCacheKey ]
]

{ #category : 'accessing' }
Expand Down
29 changes: 15 additions & 14 deletions src/Polymorph-Widgets/SystemWindow.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -474,24 +474,25 @@ SystemWindow >> drawDropShadowOn: aCanvas [
SystemWindow >> expandBoxHit [
"The fullscreen expand box has been hit"

self canBeMaximized ifFalse: [ ^ self ].
self isCollapsed ifTrue: [
self
hide;
collapseOrExpand.
self unexpandedFrame ifNil: [ self unexpandedFrame: fullFrame ].
self
fullscreen;
setExpandBoxBalloonText.
^ self show ].
self
hide;
collapseOrExpand.
self unexpandedFrame ifNil: [ self unexpandedFrame: fullFrame ].
self
fullscreen;
setExpandBoxBalloonText.
^ self show ].
self unexpandedFrame
ifNil: [
self
unexpandedFrame: fullFrame;
fullscreen ]
self
unexpandedFrame: fullFrame;
fullscreen ]
ifNotNil: [
self
bounds: self unexpandedFrame;
unexpandedFrame: nil ].
self
bounds: self unexpandedFrame;
unexpandedFrame: nil ].
self setExpandBoxBalloonText
]

Expand Down