Skip to content

Commit d458efd

Browse files
committed
fix: 🐛 added fetch before
1 parent 57de3ed commit d458efd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

git-cln

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
set -eu
3-
git fetch --prune
3+
git fetch --all --prune
44
git branch -l --format "%(refname:lstrip=2) %(upstream:track)" | while read -r br tr; do
55
if [ "$tr" == "[gone]" ]; then
66
echo "Removing $br..."

git-cob

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if [ $# -ne 1 ]; then
55
exit 1
66
fi
77

8+
git fetch --all
9+
810
inp=$1
911
br=$(git branch -l --format="%(refname:lstrip=2)" | grep -i "$inp")
1012

git-fall

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /bin/bash
2+
git fetch --all
23
let u=0
34
cur=$(git branch --show-current)
45
git branch -l --format "%(refname:lstrip=2) %(upstream:lstrip=3) %(upstream:remotename) %(upstream:track)" | {

0 commit comments

Comments
 (0)