]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai: specify rev-list to correctly list revisions
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Aug 2015 22:12:34 +0000 (15:12 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Aug 2015 22:12:34 +0000 (15:12 -0700)
Fix a typo aiaiai-email-autodetect-project to specify rev-list command
along with branch name rather than just the branch name.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/aiaiai-email-autodetect-project

index 465f6c2055cc3752ef34c3d0846f3749284f88fe..e12f17055e41725ad6b3f427a029090fc12f2307 100755 (executable)
@@ -101,7 +101,7 @@ for prj in $expected_prj $(get_cfgfile_projects_list "$cfgfile"); do
 
        # use git-patch-id to check if the patch has already been applied the
        # branch_base and reject the patch in this case.
-       for rev in $(git --git-dir="$(git_dir "$pcfg_path")" "$branch_base"); do
+       for rev in $(git --git-dir="$(git_dir "$pcfg_path")" rev-list "$branch_base"); do
                revid="$(git --git-dir="$(git_dir "$pcfg_path")" show $rev |  git patch-id --stable | awk '{print $1}')"
                shortname="$(git --git-dir="$(git_dir "$pcfg_path")" log -1 --pretty="%h (\"%s\")" $rev)"