Skip to content

Commit

Permalink
Flush ref cache after external fetch/push
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed May 18, 2024
1 parent 88123af commit 55dc4b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ externalPush: aCollectionOfBranchNamesAndAssociations toRemote: remoteName force
self externalGitDo: ('push {1}{2} {3}:{4}' format: {
forceBoolean ifTrue: ['-f '] ifFalse: [''].
remoteName. branch key. branch value})].
self repository changed: #allReferences.
self refsChangedExternally.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ fetchAllExternalFrom: aRemoteName
self externalGitDo: ('fetch {1}{2}' format: {
GitFeatureFlags pruneWhenFetching ifTrue: ['--prune '] ifFalse: [''].
aRemoteName}).
self repository changed: #allReferences.
self refsChangedExternally.
url := remote url ifNil: [(GitRemoteUndefined remote: remote) signal: 'No URL configured.'].
^ (GitAbstractProtocol url: url) refs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git porcelain - external
refsChangedExternally
self unitOfWork flushCaches.
self repository changed: #allReferences.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"expandRemoteRef:" : "pre 6/15/2018 16:04",
"externalCommand:" : "mad 5/18/2024 11:18",
"externalGitDo:" : "mad 12/20/2023 19:11",
"externalPush:toRemote:force:" : "mad 5/18/2024 12:25",
"fetchAllExternalFrom:" : "mad 5/15/2024 20:56",
"externalPush:toRemote:force:" : "mad 5/18/2024 12:26",
"fetchAllExternalFrom:" : "mad 5/18/2024 11:48",
"fetchFrom:" : "mad 4/22/2024 17:34",
"fetchFromAll:" : "mad 4/22/2024 17:25",
"fetchInternalFrom:" : "mad 4/22/2024 17:24",
Expand All @@ -38,6 +38,7 @@
"pushToRemote:update:deleteRemoteBranches:force:" : "mad 5/18/2024 11:27",
"pushToUpstreamBranchOf:ifNone:" : "jr 3/4/2020 00:49",
"recursivelyCollectCommits:into:limit:" : "jr 3/2/2017 10:39",
"refsChangedExternally" : "mad 5/18/2024 11:48",
"remoteHead:" : "mad 10/1/2023 16:52",
"remoteNames" : "jr 7/22/2020 22:02",
"remoteUrl:" : "jr 3/4/2020 00:46",
Expand Down

0 comments on commit 55dc4b4

Please sign in to comment.