Skip to content

Commit 0612d2e

Browse files
authored
vfs-2.55.0: port PRs recently merged into vfs-2.54.0 (#950)
This ports the PRs #941 and #946 to vfs-2.55.0. The [v2.54.0.vfs.0.4 release](https://github.com/microsoft/git/releases/tag/v2.54.0.vfs.0.4) also included #932, #934 and #947, whose changes were already integrated into the `vfs-2.55.0` branch.
2 parents de444c4 + 5cc2142 commit 0612d2e

4 files changed

Lines changed: 20 additions & 19 deletions

File tree

.azure-pipelines/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,13 +1192,13 @@ extends:
11921192
version: '8.x'
11931193
- template: .azure-pipelines/esrp/sign.yml@self
11941194
parameters:
1195-
displayName: 'Example sign Debian package'
1195+
displayName: 'Sign Debian package'
11961196
folderPath: '$(Build.ArtifactStagingDirectory)/app'
11971197
pattern: '**/*.deb'
11981198
inlineOperation: |
11991199
[
12001200
{
1201-
"KeyCode": "CP-453387-Pgp",
1201+
"KeyCode": "CP-500207-Pgp",
12021202
"OperationCode": "LinuxSign",
12031203
"ToolName": "sign",
12041204
"ToolVersion": "1.0",

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,44 +122,40 @@ To download and validate the signature of this package, run the following:
122122
sudo apt-get install -y curl debsig-verify
123123

124124
# Download public key signature file
125-
curl -s https://api.github.com/repos/microsoft/git/releases/latest \
126-
| grep -E 'browser_download_url.*msft-git-public.asc' \
127-
| cut -d : -f 2,3 \
128-
| tr -d \" \
129-
| xargs -I 'url' curl -L -o msft-git-public.asc 'url'
125+
curl -Os https://packages.microsoft.com/keys/microsoft-2025.asc
130126

131127
# De-armor public key signature file
132-
gpg --output msft-git-public.gpg --dearmor msft-git-public.asc
128+
gpg --output microsoft-2025.gpg --dearmor microsoft-2025.asc
133129

134-
# Note that the fingerprint of this key is "B8F12E25441124E1", which you can
130+
# Note that the fingerprint of this key is "EE4D7792F748182B", which you can
135131
# determine by running:
136-
gpg --show-keys msft-git-public.asc | head -n 2 | tail -n 1 | tail -c 17
132+
gpg --show-keys microsoft-2025.asc | head -n 2 | tail -n 1 | tail -c 17
137133

138134
# Copy de-armored public key to debsig keyring folder
139-
sudo mkdir /usr/share/debsig/keyrings/B8F12E25441124E1
140-
sudo mv msft-git-public.gpg /usr/share/debsig/keyrings/B8F12E25441124E1/
135+
sudo mkdir /usr/share/debsig/keyrings/EE4D7792F748182B
136+
sudo mv microsoft-2025.gpg /usr/share/debsig/keyrings/EE4D7792F748182B/
141137

142138
# Create an appropriate policy file
143-
sudo mkdir /etc/debsig/policies/B8F12E25441124E1
139+
sudo mkdir /etc/debsig/policies/EE4D7792F748182B
144140
cat > generic.pol << EOL
145141
<?xml version="1.0"?>
146142
<!DOCTYPE Policy SYSTEM "https://www.debian.org/debsig/1.0/policy.dtd">
147143
<Policy xmlns="https://www.debian.org/debsig/1.0/">
148-
<Origin Name="Microsoft Git" id="B8F12E25441124E1" Description="Microsoft Git public key"/>
144+
<Origin Name="Microsoft Git" id="EE4D7792F748182B" Description="Microsoft Git public key"/>
149145
<Selection>
150-
<Required Type="origin" File="msft-git-public.gpg" id="B8F12E25441124E1"/>
146+
<Required Type="origin" File="microsoft-2025.gpg" id="EE4D7792F748182B"/>
151147
</Selection>
152148
<Verification MinOptional="0">
153-
<Required Type="origin" File="msft-git-public.gpg" id="B8F12E25441124E1"/>
149+
<Required Type="origin" File="microsoft-2025.gpg" id="EE4D7792F748182B"/>
154150
</Verification>
155151
</Policy>
156152
EOL
157153

158-
sudo mv generic.pol /etc/debsig/policies/B8F12E25441124E1/generic.pol
154+
sudo mv generic.pol /etc/debsig/policies/EE4D7792F748182B/generic.pol
159155

160-
# Download Debian package
156+
# Download Debian package (substitute `amd64` with `arm64` on ARM machines)
161157
curl -s https://api.github.com/repos/microsoft/git/releases/latest \
162-
| grep "browser_download_url.*deb" \
158+
| grep "browser_download_url.*amd64.deb" \
163159
| cut -d : -f 2,3 \
164160
| tr -d \" \
165161
| xargs -I 'url' curl -L -o msft-git.deb 'url'

gvfs-helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,7 @@ static int prefetch_get_next_task(struct child_process *cp,
24472447
strvec_pushl(&cp->args, "-o", entry->temp_path_idx.buf, NULL);
24482448
strvec_push(&cp->args, entry->temp_path_pack.buf);
24492449
cp->no_stdin = 1;
2450+
cp->no_stdout = 1;
24502451

24512452
return 1;
24522453
}

t/t5797-gvfs-helper-prefetch-threads.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ do_prefetch_all () {
2121
--no-progress \
2222
prefetch >OUT.output 2>OUT.stderr &&
2323

24+
test_must_be_empty OUT.stderr &&
2425
verify_received_packfile_count 3 &&
2526
verify_prefetch_keeps 1200000000
2627
}
@@ -34,6 +35,7 @@ do_prefetch_since () {
3435
--no-progress \
3536
prefetch --since="1000000000" >OUT.output 2>OUT.stderr &&
3637

38+
test_must_be_empty OUT.stderr &&
3739
verify_received_packfile_count 2 &&
3840
verify_prefetch_keeps 1200000000
3941
}
@@ -47,6 +49,7 @@ do_prefetch_up_to_date () {
4749
--no-progress \
4850
prefetch --since="1000000000" >OUT.output 2>OUT.stderr &&
4951

52+
test_must_be_empty OUT.stderr &&
5053
verify_received_packfile_count 2 &&
5154
verify_prefetch_keeps 1200000000 &&
5255

@@ -57,6 +60,7 @@ do_prefetch_up_to_date () {
5760
--no-progress \
5861
prefetch >OUT.output 2>OUT.stderr &&
5962

63+
test_must_be_empty OUT.stderr &&
6064
verify_received_packfile_count 0 &&
6165
verify_prefetch_keeps 1200000000
6266
}

0 commit comments

Comments
 (0)