-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Was erroneously removed due to a bug introduced in Monticello-ct.715.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(PackageInfo named: 'FileSystem-Git') postscript: '"code to be run after the loading of this package" | ||
"initialize GitTreeEntry mode inst var" | ||
modes := Smalltalk globals at: #TEMP_GitTreeEntryModes. | ||
modes keysAndValuesDo: [:entry :modes | | ||
entry convertToCurrentVersion: modes refStream: nil]. | ||
"clean up" | ||
Smalltalk globals removeKey: #TEMP_GitTreeEntryModes. | ||
"2020-03-10: turn objectCache from Dictionary into GitObjectCache. Just invalidate the cache." | ||
GitRepository allInstancesDo: [:each | each flushCaches]. | ||
GitPackedRefStore allInstancesDo: | ||
[:each | | ||
(each instVarNamed: ''baseDir'') ifNil: | ||
[each instVarNamed: ''baseDir'' put: | ||
((each repository isKindOf: GitUnitOfWork) | ||
ifTrue: [each repository repository] | ||
ifFalse: [each repository]) baseDir]]. | ||
GitUnitOfWork allInstancesDo: | ||
[:each | | ||
each | ||
flushCaches; | ||
convertToCurrentVersion: Dictionary new refStream: nil]. | ||
'! |