Skip to content

Commit

Permalink
Fix: restore package postscript
Browse files Browse the repository at this point in the history
Was erroneously removed due to a bug introduced in Monticello-ct.715.
  • Loading branch information
j4yk committed Apr 11, 2020
1 parent 9254dfd commit cb398d1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/FileSystem-Git.package/monticello.meta/postscript.st
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].
'!

0 comments on commit cb398d1

Please sign in to comment.