From 7aa178acc9f83e58ad7a15a33be0fcdb80033c56 Mon Sep 17 00:00:00 2001 From: Tobias Fendin Date: Mon, 3 Jan 2022 16:45:09 +0100 Subject: [PATCH] Made local-commits work with all remotes --- bin/git-local-commits | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/git-local-commits b/bin/git-local-commits index 444790243..eee5a2fdb 100755 --- a/bin/git-local-commits +++ b/bin/git-local-commits @@ -1,6 +1,3 @@ #!/usr/bin/env bash -ref=$(git symbolic-ref HEAD) -branch=${ref#refs/heads/} - -git log origin/${branch}..${branch} $* +git log @{upstream}..@ $*