From 0419fd00c8fd635f85ef902e4e5b293b9028ac96 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 15 Dec 2017 12:29:57 +0100 Subject: [PATCH] Limit branch length Signed-off-by: Knut Ahlers --- bin/git-b | 5 ++--- bin/git-c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/git-b b/bin/git-b index 7f01391..1e3efd9 100755 --- a/bin/git-b +++ b/bin/git-b @@ -1,6 +1,5 @@ #!/bin/bash -set -e -set -o pipefail +set -euo pipefail -git checkout -b $(slugify "$@") +git checkout -b $(slugify -l 35 "$@") diff --git a/bin/git-c b/bin/git-c index 796858e..b87be4c 100755 --- a/bin/git-c +++ b/bin/git-c @@ -1,7 +1,6 @@ #!/bin/bash -set -eu -set -o pipefail +set -euo pipefail source "${HOME}/bin/script_framework.sh"