From 1efe7fa3ca7f9f62ddf7656b235dfff883a5d486 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 7 Jan 2018 21:49:27 +0100 Subject: [PATCH] Truncate branch names at 72 chars Signed-off-by: Knut Ahlers --- bin/git-b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-b b/bin/git-b index 1e3efd9..6003341 100755 --- a/bin/git-b +++ b/bin/git-b @@ -2,4 +2,4 @@ set -euo pipefail -git checkout -b $(slugify -l 35 "$@") +git checkout -b $(slugify "$@" | cut -c 1-72)