-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix update pharo repository in case of locating already cloned repository
- Loading branch information
Showing
5 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
Iceberg-Memory.package/IceMemoryProject.class/instance/refresh.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
accessing | ||
adoptCommit: aCommit | ||
|
||
| oldCommit | | ||
self referenceCommit = aCommit | ||
ifTrue: [ ^ self ]. | ||
|
||
oldCommit := self referenceCommit. | ||
self referenceCommit: aCommit. | ||
self forceCalculateDirtyPackages. | ||
|
||
"If both commits are from a different class but still have the same ID, we do not need to force the calculation of dirty packages. | ||
This is required for the case when a working copy existed with an unknown comit but it was not linked to a repository" | ||
(oldCommit id = aCommit id) | ||
ifFalse: [ self forceCalculateDirtyPackages. ] |
1 change: 0 additions & 1 deletion
1
Iceberg.package/IceWorkingCopy.class/instance/refreshProject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
private-project | ||
refreshProject | ||
|
||
project refresh. | ||
repository commitsInPackageCache: nil. | ||
self refreshPackages |