]> rtime.felk.cvut.cz Git - git.git/blobdiff - git-submodule.sh
Update draft release notes to 1.7.2
[git.git] / git-submodule.sh
index 2dd372a21d82a109774e80e014f9959485202b3e..8c562a72e6e95fce60b78c015623212b7fce1dab 100755 (executable)
@@ -21,6 +21,8 @@ command=
 branch=
 reference=
 cached=
+recursive=
+init=
 files=
 nofetch=
 update=
@@ -269,6 +271,8 @@ cmd_foreach()
                shift
        done
 
+       toplevel=$(pwd)
+
        module_list |
        while read mode sha1 stage path
        do
@@ -648,7 +652,7 @@ cmd_summary() {
                                range=$sha1_dst
                        fi
                        GIT_DIR="$name/.git" \
-                       git log --pretty=oneline --first-parent $range | wc -l
+                       git rev-list --first-parent $range -- | wc -l
                        )
                        total_commits=" ($(($total_commits + 0)))"
                        ;;