diff options
author | Raphael Geissert <geissert@debian.org> | 2011-03-20 17:57:02 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2011-03-20 17:57:02 +0000 |
commit | 213c2f7600ced1eda2e01336fee4f870aeafdb56 (patch) | |
tree | e2bdbef01d521e69fd39810ae24a3f5bb5af9449 /scripts | |
parent | 65041f975c51db16bc2f358e8f477eb9343f3077 (diff) |
fix unhandled condition in find-commit
git-svn-id: svn+ssh://svn.debian.org/svn/kernel-sec@2231 e094ebfe-e918-0410-adfb-c712417f3574
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find-commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/find-commit b/scripts/find-commit index 54de9374..b3a6db59 100755 --- a/scripts/find-commit +++ b/scripts/find-commit @@ -62,6 +62,8 @@ fread = urllib.urlopen( 'http://ftp%s/packed-refs' % giturl[9::] , 'r' ) split = [ '' , '' ] while ( split[1] != 'refs/heads/master' ): split = fread.readline().strip( ' \n' ).split() + if len( split ) < 2: + split = [ '' , '' ] remote_hash = split[0] fread.close() if ( local_hash != remote_hash ): |