summaryrefslogtreecommitdiff
path: root/lib-src/mr/config
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/mr/config')
-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.