summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2015-08-14 15:12:34 -0700
committerJacob Keller <jacob.e.keller@intel.com>2015-08-14 15:12:34 -0700
commitb666a0e61b222d646945083f5de22dcbc71531d3 (patch)
treea2657b1a0e0dd71550466462c5941be06a749e87
parent8ca608cd71f9bb8985e1f847d16b75d7c53e2a93 (diff)
downloadaiaiai-b666a0e61b222d646945083f5de22dcbc71531d3.tar.gz
aiaiai: specify rev-list to correctly list revisions
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>
-rwxr-xr-xemail/aiaiai-email-autodetect-project2
1 files changed, 1 insertions, 1 deletions
diff --git a/email/aiaiai-email-autodetect-project b/email/aiaiai-email-autodetect-project
index 465f6c2..e12f170 100755
--- a/email/aiaiai-email-autodetect-project
+++ b/email/aiaiai-email-autodetect-project
@@ -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)"