Skip to content

Commit 37aa121

Browse files
committed
removing unneccessary git fetch
1 parent c7f5f65 commit 37aa121

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/helpers/restyle-diff.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,24 @@ export -f restyle-paths
6161

6262
while [[ $# -gt 0 ]]; do
6363
case "$1" in
64-
-d)
65-
export LOG_LEVEL="DEBUG"
66-
shift
67-
;;
68-
-p)
69-
pull_image=1
70-
shift
71-
;;
72-
*)
73-
ref="$1"
74-
shift
75-
;;
64+
-d)
65+
export LOG_LEVEL="DEBUG"
66+
shift
67+
;;
68+
-p)
69+
pull_image=1
70+
shift
71+
;;
72+
*)
73+
ref="$1"
74+
shift
75+
;;
7676
esac
7777
done
7878

7979
if [[ -z "$ref" ]]; then
8080
ref="master"
81-
git remote | grep -qxF upstream && ref="upstream/master" && git fetch upstream
81+
git remote | grep -qxF upstream && ref="upstream/master"
8282
fi
8383

8484
if [[ $pull_image -eq 1 ]]; then

0 commit comments

Comments
 (0)