summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-subtree.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-subtree.sh b/git-subtree.sh
index ce94d363dc..390c0fc574 100755
--- a/git-subtree.sh
+++ b/git-subtree.sh
@@ -547,7 +547,7 @@ cmd_split()
# We can't restrict rev-list to only $dir here, because some of our
# parents have the $dir contents the root, and those won't match.
# (and rev-list --follow doesn't seem to solve this)
- grl='git rev-list --reverse --parents $revs $unrevs'
+ grl='git rev-list --topo-order --reverse --parents $revs $unrevs'
revmax=$(eval "$grl" | wc -l)
revcount=0
createcount=0