diff options
author | John Levon <john.levon@joyent.com> | 2019-01-31 09:40:46 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-02-06 08:53:51 +0000 |
commit | 972282a0c9782b1780223d9eb8b11cdba5236348 (patch) | |
tree | abbad305f670be9815072724137d4417a52855b1 /usr/src/tools/scripts/git-pbchk.py | |
parent | 7106859bbaed16f8e903b56f6d589461e7bfd9fa (diff) | |
download | illumos-gate-972282a0c9782b1780223d9eb8b11cdba5236348.tar.gz |
10328 git pbchk falls over with no changesets
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/tools/scripts/git-pbchk.py')
-rw-r--r-- | usr/src/tools/scripts/git-pbchk.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/tools/scripts/git-pbchk.py b/usr/src/tools/scripts/git-pbchk.py index e0f3d662d1..dc40a5d222 100644 --- a/usr/src/tools/scripts/git-pbchk.py +++ b/usr/src/tools/scripts/git-pbchk.py @@ -20,7 +20,7 @@ # Copyright 2014 Garrett D'Amore <garrett@damore.org> # Copyright (c) 2015, 2016 by Delphix. All rights reserved. # Copyright 2016 Nexenta Systems, Inc. -# Copyright 2018 Joyent, Inc. +# Copyright (c) 2019, Joyent, Inc. # Copyright 2018 OmniOS Community Edition (OmniOSce) Association. # @@ -125,7 +125,7 @@ def git_parent_branch(branch): if not p: sys.stderr.write("Failed finding git parent branch\n") - sys.exit(err) + sys.exit(1) for line in p: # Git 1.7 will leave a ' ' trailing any non-tracking branch @@ -141,8 +141,8 @@ def git_comments(parent): p = git('log --pretty=tformat:%%B:SEP: %s..' % parent) if not p: - sys.stderr.write("Failed getting git comments\n") - sys.exit(err) + sys.stderr.write("No outgoing changesets found - missing -p option?\n"); + sys.exit(1) return [x.strip() for x in p if x != ':SEP:\n'] @@ -157,7 +157,7 @@ def git_file_list(parent, paths=None): if not p: sys.stderr.write("Failed building file-list from git\n") - sys.exit(err) + sys.exit(1) ret = set() for fname in p: |