Skip to content

Commit c7fcc64

Browse files
committed
[julia-git-git] patch
1 parent 1e4e0e6 commit c7fcc64

3 files changed

Lines changed: 42 additions & 3 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 4b933f005518196d99e0dd86646adcaee6cc1bff Mon Sep 17 00:00:00 2001
2+
From: Yichao Yu <yyc1992@gmail.com>
3+
Date: Wed, 5 Aug 2026 21:35:17 -0400
4+
Subject: [PATCH] Hardcode git path
5+
6+
---
7+
src/git_function.jl | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/src/git_function.jl b/src/git_function.jl
11+
index 7e5114d..6afdcb5 100644
12+
--- a/src/git_function.jl
13+
+++ b/src/git_function.jl
14+
@@ -1,6 +1,5 @@
15+
using OpenSSH_jll: OpenSSH_jll
16+
using Git_LFS_jll: Git_LFS_jll
17+
-using JLLWrappers: pathsep, LIBPATH_env
18+
19+
"""
20+
git()
21+
@@ -22,6 +21,7 @@ julia> run(git(["clone", "https://github.com/JuliaRegistries/General"]))
22+
to bypass the parsing of the command string.
23+
"""
24+
function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
25+
+ return `/usr/bin/git`
26+
path = split(get(ENV, "PATH", ""), pathsep)
27+
libpath = split(get(ENV, LIBPATH_env, ""), pathsep)
28+
29+
--
30+
2.53.0
31+

archlinuxcn/julia-git-git-src/PKGBUILD

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ arch=('any')
88
license=('MIT')
99
makedepends=(git julia-pkg-scripts)
1010
depends=(julia-git)
11-
source=("git+https://github.com/JuliaVersionControl/Git.jl.git#commit=$_commit")
12-
sha256sums=('deeb5be2952a0dfc5fcf792b3167e5e1ccc4ff6ec2acd82759cadcd757d99688')
11+
source=("git+https://github.com/JuliaVersionControl/Git.jl.git#commit=$_commit"
12+
0001-Hardcode-git-path.patch)
13+
sha256sums=('deeb5be2952a0dfc5fcf792b3167e5e1ccc4ff6ec2acd82759cadcd757d99688'
14+
'0dda4bb1315b6435463fe86aaec865c1a94865ba8e49501c11a5ba4a9a7bd11f')
15+
16+
prepare() {
17+
cd Git.jl
18+
19+
patch -Np1 --no-backup-if-mismatch < "../0001-Hardcode-git-path.patch"
20+
}
1321

1422
package() {
1523
cd Git.jl

archlinuxcn/julia-git-git-src/lilac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ update_on:
1212
url: https://raw.githubusercontent.com/yuyichao/archcn-julia-pkgs/master/pkgs/Git/version
1313
regex: 'version: *([^ ]*@[^ ]*)'
1414
- source: manual
15-
manual: 1
15+
manual: 2

0 commit comments

Comments
 (0)