From 6eb04bcca81a76eeceac6aaa6c7882c134e6951a Mon Sep 17 00:00:00 2001 From: "J.C. Yamokoski" Date: Tue, 28 Mar 2017 09:44:40 -0400 Subject: [PATCH] Remove slashes from git-config command These slashes were causing the branch to be saved in `.git/config` with headings such as `[branch "\"pr/123\""]` as opposed to `[branch "pr/123"]`. This in turn prevented these entries from being removed when running `git pr clean`. --- bin/git-pr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-pr b/bin/git-pr index ede1d85..5f68638 100755 --- a/bin/git-pr +++ b/bin/git-pr @@ -18,5 +18,5 @@ else fi git fetch -fu $remote refs/pull/$id/head:$branch && \ git checkout $branch && \ -git config --local --replace branch.\"$branch\".merge refs/pull/$id/head && \ -git config --local --replace branch.\"$branch\".remote $remote; +git config --local --replace branch.$branch.merge refs/pull/$id/head && \ +git config --local --replace branch.$branch.remote $remote;