From: Johannes Berg Date: Thu, 18 Apr 2013 11:58:09 +0000 (+0200) Subject: git-tracker: fix multi-commit tracking X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ea9bf20ae32454911519335ac8b05afeec8a4ba;p=openwrt%2Fstaging%2Fblogic.git git-tracker: fix multi-commit tracking Fix a bug with multiple commits: the first commit in a series was always treated as "multiple" because it had no correct parent recorded in the dictionary. Signed-off-by: Johannes Berg --- diff --git a/devel/git-tracker.py b/devel/git-tracker.py index 0771703c602a..9edc95cfb3b9 100755 --- a/devel/git-tracker.py +++ b/devel/git-tracker.py @@ -214,7 +214,7 @@ if __name__ == '__main__': print "too many commits (%d)!" % len(commits) sys.exit(10) prev_commits = {} - p = None + p = prev for commit in commits: prev_commits[commit] = p p = commit