Module: check_mk
Branch: master
Commit: 99b85bbf0b0429fe08c73a8238318538b790bacd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=99b85bbf0b0429…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 09:12:06 2017 +0100
gb: Fixed "gb commit" with newer(?) git versions
Change-Id: Ib55c63352dc25f3518257544c85d80d0ae5edbb3
---
gb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gb b/gb
index 166eca9..405371f 100755
--- a/gb
+++ b/gb
@@ -107,7 +107,7 @@ def check_modified():
global g_modified
g_modified = set([])
for line in os.popen("git status --porcelain"):
- if line[0] in "AM" and ".bugs/" in line:
+ if line.lstrip()[0] in "AM" and ".bugs/" in line:
try:
id = line.rsplit("/", 1)[-1].strip()
g_modified.add(int(id))