summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-12-06 08:45:44 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-12-07 09:41:15 -0700
commitef847ef49ea911825ae279f892d3823ad6ca5039 (patch)
treef74d968eb8eb8fb413d1862fec1af73d11a29240 /lib-src
parent6f0ef4a50aabbaed05c4d6f6c1d7c5a409b437c2 (diff)
downloaddotfiles-ef847ef49ea911825ae279f892d3823ad6ca5039.tar.gz
myrepos skip for ~/src/emacs: don't assume $1 is the action
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/mr/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/mr/config b/lib-src/mr/config
index 449fc013..c3e4f841 100644
--- a/lib-src/mr/config
+++ b/lib-src/mr/config
@@ -350,7 +350,7 @@ pull = git checkout "$hostname" \
"${1:-$(git reflog $hostname -1 --pretty='%gs' \
--grep-reflog='^pull --rebase --autostash origin ' \
| awk '{print $5}')}"
-skip = lazy || ( [ "$1" = pull ] \
+skip = lazy || ( [ "$MR_ACTION" = pull ] \
&& [ -z "$(git for-each-ref '[r]efs/heads/'$hostname)" ] )
# myrepos git_status assumes a separate registration for each worktree.