Skip to content

Commit cb8b820

Browse files
committed
fix(common-files/building-system-patches): change git fetch in lint-packages.sh to TUR URL
1 parent ef9e23c commit cb8b820

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'git reset HEAD~' is TEMPORARY - work around bug in lint-packages.sh
2+
will discuss with Tomjo2000 and fix upstream later
3+
4+
--- a/scripts/lint-packages.sh
5+
+++ b/scripts/lint-packages.sh
6+
@@ -124,7 +124,8 @@ check_indentation() {
7+
# We'll need the 'origin/master' as a base commit when running the version check.
8+
# So try fetching it now if it doesn't exist.
9+
+git reset HEAD~
10+
if ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then
11+
- git fetch https://github.com/termux/termux-packages.git
12+
+ git fetch https://github.com/termux-user-repository/tur.git
13+
base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"
14+
fi
15+

0 commit comments

Comments
 (0)