Skip to content

Commit 8735ee1

Browse files
committed
Fix cache control with C-u g
1 parent dbfc436 commit 8735ee1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

magithub-ci.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ remote counterpart."
172172
If EVEN-IF-OFFLINE is non-nil, we'll still refresh (that is,
173173
we'll hit the API) if Magithub is offline."
174174
(interactive "P")
175-
(let ((magithub-cache (and (not even-if-offline) 'expire)))
175+
(let ((magithub-cache (if even-if-offline nil magithub-cache)))
176176
(magithub-cache-without-cache :ci-status
177177
(ignore (magithub-ci-status (magithub-ci-status--get-default-ref)))))
178178
(when (derived-mode-p 'magit-status-mode)

magithub-issue-status.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
If EVEN-IF-OFFLINE is non-nil, we'll still refresh (that is,
99
we'll hit the API) if Magithub is offline."
1010
(interactive "P")
11-
(let ((magithub-cache (and (not even-if-offline) 'expire)))
11+
(let ((magithub-cache (if even-if-offline nil magithub-cache)))
1212
(magithub-cache-without-cache :issues
1313
(ignore (magithub--issue-list))))
1414
(when (derived-mode-p 'magit-status-mode)

0 commit comments

Comments
 (0)