aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2022-09-22 14:46:32 -0700
committerRadon Rosborough <radon@intuitiveexplanations.com>2022-09-22 14:46:32 -0700
commite959e32f4849da986e72f6789437baa1d54e991f (patch)
tree33fe479233a2dba123809e9bf7f5c34560a9e26c
parent82709ef31f24d74e80deb1f44d7cab1687fdfcb8 (diff)
Use origin/main instead of main
-rwxr-xr-xtest/formatters/apheleia-ft.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/formatters/apheleia-ft.el b/test/formatters/apheleia-ft.el
index 01fad8c..cfae777 100755
--- a/test/formatters/apheleia-ft.el
+++ b/test/formatters/apheleia-ft.el
@@ -64,13 +64,15 @@ This means added, removed, or changed compared to main."
(let ((exit-status
(call-process
"git" nil (list (current-buffer) stderr-file) nil
- "diff" "--name-only" "main...HEAD")))
+ "diff" "--name-only" "origin/main...HEAD")))
(unless (zerop exit-status)
(with-temp-buffer
(insert-file-contents stderr-file)
(princ (buffer-string)))
(error
- "Failed to 'git diff --name-only main...HEAD', got exit status %S"
+ (concat
+ "Failed to 'git diff --name-only "
+ "origin/main...HEAD', got exit status %S")
exit-status)))
(split-string (buffer-string)))))