libreboot / libreboot (public) (License: Unspecified) (since 2023-04-11) (hash sha1)
libreboot project provides free boot firmware based on coreboot
List of commits:
Subject Hash Author Date (UTC)
git.sh: re-write tmpclone without caching 0d876622fcb715eb8cfc03a1bf9bb138fd845731 Leah Rowe 2025-05-08 21:05:28
git.sh: use setvars for fail variables 454f11bdd7bf7409276b2e0fc301a061b258e8d9 Leah Rowe 2025-05-08 20:38:07
git.sh: hard fail if git am fails 6bdb15fd329e1ffb22ff37c7e9a296cca633f836 Leah Rowe 2025-05-08 20:36:37
git.sh: Hard fail if reset fails 93d4eca04ae9b7eabb4fa72d96784b9ba714d384 Leah Rowe 2025-05-08 20:33:17
init.sh: Only check XBMK_CACHE if it exists a3ba8acface32900a524cf0ab429cadcd99577bc Leah Rowe 2025-05-08 19:49:49
HP 820 G2: Use fam15h cbfstool tree for refcode 021e7615c84ddf91edcd13a6385fe1bd6ca51ebb Leah Rowe 2025-05-08 19:27:42
also fix the other grub trees fe926052441151722886edb5693a961342b3aa9e Leah Rowe 2025-05-08 10:12:34
fix trying to boot all logical volumes after unlocking an encrypted volume e084b06dc767af37870b05139598b56a41872d1f cqst 2025-05-08 09:28:14
init.sh: remove useless export 2cea8517f3b6c7f72cdecbcd3e6745db29284852 Leah Rowe 2025-05-07 20:16:50
init.sh: also allow XBMK_RELEASE=Y or N 1b0afdcea226ebc4e5f46c50fc21aa835b52ada9 Leah Rowe 2025-05-07 18:23:32
init.sh: Resolve XBMK_CACHE via readlink 570f1417a80224cf73a57febf126bd80e908b32e Leah Rowe 2025-05-07 18:12:51
init.sh: check XBMK_CACHE is a directory instead e1af1055ed11b25df42c8a7a32c250da346b08b7 Leah Rowe 2025-05-07 18:09:29
init.sh: export LOCALVERSION in set_env e1628ad8f3e63428888b42d0c49c3fe6b3c9d006 Leah Rowe 2025-05-07 18:04:52
init.sh: run set_version before set_env 40a944118f2af08ab37719c07cf7e826267a0eef Leah Rowe 2025-05-07 18:03:51
init.sh: Use readlink in pybin() cba04aa74b816cbd5f1266a73962f6dd48ee2892 Leah Rowe 2025-05-07 18:00:13
inject.sh: simplify extract_kbc1126ec() a94bd3c0939fac05a902af2cce2cf862ecdf9200 Leah Rowe 2025-05-07 16:08:42
inject.sh: simplified MAC address handling e3098c61f43575650628fc4e6f7e1693c44ac337 Leah Rowe 2025-05-07 16:00:41
inject.sh: Simplify patch_release_roms() d530e68594d39076831d7a232ea17c8b42d73b4f Leah Rowe 2025-05-07 15:53:57
lib.sh: Remove useless command in err() 7f71328f0e214db25f5dcccea0dab32ea834fb13 Leah Rowe 2025-05-07 15:23:12
inject.sh: rename copytb and preprom functions 394b4ea7a59e4392d39c6e8154b21ae91b26492e Leah Rowe 2025-05-07 14:17:45
Commit 0d876622fcb715eb8cfc03a1bf9bb138fd845731 - git.sh: re-write tmpclone without caching
remove caching for now. it's buggy as hell.

will re-write the caching feature next.

Signed-off-by: Leah Rowe <leah@libreboot.org>
Author: Leah Rowe
Author date (UTC): 2025-05-08 21:05
Committer name: Leah Rowe
Committer date (UTC): 2025-05-08 21:14
Parent(s): 454f11bdd7bf7409276b2e0fc301a061b258e8d9
Signer:
Signing key:
Signing status: N
Tree: 28128d4e11fd97466e7ad5ae647163f18000869d
File Lines added Lines deleted
include/git.sh 6 28
File include/git.sh changed (mode: 100644) (index 14def209..9440b1af)
... ... fetch_submodule()
89 89
90 90 tmpclone() tmpclone()
91 91 { {
92 livepull="n" && [ "$repofail" = "y" ] && \
93 printf "Cached clone failed; trying online.\n" 1>&2 && livepull="y"
94
95 eval "`setvars "n" resetfail repofail amfail`"
96
97 [ $# -lt 6 ] || rm -Rf "$3" || err "git retry: !rm $3 ($1)"
98 repodir="$XBMK_CACHE/repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3"
99 mkdir -p "$XBMK_CACHE/repo" || err "!rmdir $XBMK_CACHE/repo"
100
101 if [ "$livepull" = "y" ] && [ ! -d "$repodir" ]; then
102 git clone "$1" "$repodir" || git clone $2 "$repodir" || \
103 err "!clone $1 $2 $repodir $4 $5" #
104 elif [ -d "$repodir" ] && [ $# -lt 6 ]; then
105 git -C "$repodir" pull || sleep 3 || git -C "$repodir" pull \
106 || sleep 3 || git -C "$repodir" pull || :
107 fi
108 (
109 [ $# -gt 5 ] || git clone "$repodir" "$3" || err "!clone $repodir $3"
110 git -C "$3" reset --hard "$4" || resetfail="y"
111 [ "$resetfail" = "y" ] || ( fx_ "eval x_ git -C \"$3\" am" find "$5" \
112 -type f ) || amfail="y"
113 ) || repofail="y"
114
115 [ "$resetfail" = "y" ] && err "Cannot reset revisions"
116 [ "$amfail" = "y" ] && err "Cannot apply patches"
117
118 [ "$repofail" = "y" ] && [ $# -lt 6 ] && tmpclone "$@" retry
119 [ "$repofail" = "y" ] && err "!clone $1 $2 $3 $4 $5"; :
92 [ -d "$3" ] && return 0
93 printf "Creating git clone '%s' from '%s', '%s'\n" "$3" "$1" "$2"
94 git clone "$1" "$3" || x_ rm -Rf "$3"
95 [ -d "$3" ] || x_ git clone "$2" "$3"
96 x_ git -C "$3" reset --hard "$4"
97 fx_ "eval x_ git -C \"$3\" am" find "$5" -type f
120 98 } }
121 99
122 100 nuke() nuke()
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/libreboot/libreboot

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/libreboot/libreboot

Clone this repository using git:
git clone git://git.rocketgit.com/user/libreboot/libreboot

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main