Skip to content

Commit

Permalink
Fix #932
Browse files Browse the repository at this point in the history
Fix update pharo repository in case of locating already cloned repository
  • Loading branch information
guillep committed Aug 2, 2018
1 parent 1dee75f commit cbb836a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ updateLocation: aReference

"change location"
self entity location: aReference.
"force refresh packages"
self entity workingCopy project: self entity project.

self entity postFetch.

Iceberg announcer announce: (IceRepositoryModified for: self entity)
4 changes: 0 additions & 4 deletions Iceberg.package/IceAbstractProject.class/instance/refresh.st

This file was deleted.

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. ]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
private-project
refreshProject

project refresh.
repository commitsInPackageCache: nil.
self refreshPackages

0 comments on commit cbb836a

Please sign in to comment.