Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silencing 404s on gvfs/config #504

Closed
wants to merge 272 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
35f8f87
Do not remove files outside the sparse-checkout
Apr 5, 2017
41bf457
Hydrate missing loose objects in check_and_freshen()
Mar 15, 2017
413f7c7
gvfs: refactor loading the core.gvfs config value
Apr 14, 2017
aa7aaf9
sha1_file: when writing objects, skip the read_object_hook
dscho Sep 8, 2017
8fa7cc8
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
Nov 16, 2018
808ffe7
Add virtual file system settings and hook proc
benpeart Jan 11, 2018
209a2d9
cache-tree: remove use of strbuf_addf in update_one
Jul 3, 2017
c79ab0d
virtualfilesystem: don't run the virtual file system hook if the inde…
benpeart Aug 1, 2018
94bd94d
gvfs: block unsupported commands when running in a GVFS repo
benpeart Dec 6, 2018
ec1ab41
virtualfilesystem: fix bug with symlinks being ignored
benpeart Sep 25, 2018
95a4530
gvfs: allow overriding core.gvfs
derrickstolee Apr 15, 2020
8784679
virtualfilesystem: check if directory is included
Oct 9, 2018
0051020
BRANCHES.md: Add explanation of branches and using forks
Jul 27, 2018
838fe35
status: add status serialization mechanism
jeffhostetler Aug 22, 2017
64769bc
Teach ahead-behind and serialized status to play nicely together
jamill Jan 10, 2018
f70031b
status: serialize to path
jeffhostetler Feb 2, 2018
d35814a
status: reject deserialize in V2 and conflicts
jeffhostetler Feb 7, 2018
32720c3
status: fix rename reporting when using serialization cache
jeffhostetler Jul 25, 2018
61f4fe9
serialize-status: serialize global and repo-local exclude file metadata
jeffhostetler Jul 20, 2018
7d25e6e
status: deserialization wait
jeffhostetler Jul 25, 2018
8f4e15b
merge-recursive: avoid confusing logic in was_dirty()
dscho May 21, 2019
bad2f11
merge-recursive: add some defensive coding to was_dirty()
dscho May 21, 2019
513890d
merge-recursive: teach was_dirty() about the virtualfilesystem
dscho May 21, 2019
016c319
vfs: fix case where directories not handled correctly
jamill Nov 20, 2018
1ce34d9
status: deserialize with -uno does not print correct hint
jeffhostetler Jun 25, 2019
7074e37
backwards-compatibility: support the post-indexchanged hook
dscho May 28, 2019
4a10957
gvfs:trace2:data: add trace2 tracing around read_object_process
jeffhostetler Sep 26, 2018
3da4dd0
gvfs:trace2:data: status deserialization information
jeffhostetler Sep 26, 2018
b95a3e6
gvfs:trace2:data: status serialization
jeffhostetler Jan 7, 2019
7b3a1b6
gvfs:trace2:data: add vfs stats
jeffhostetler Nov 19, 2018
d6318fd
trace2: refactor setting process starting time
jeffhostetler Apr 15, 2019
8a0716d
wt-status-deserialize: fix crash when -v is used
jeffhostetler Apr 10, 2020
8c02ed3
trace2:gvfs:experiment: clear_ce_flags_1
jeffhostetler Apr 30, 2019
e2aecfb
fsmonitor: check CE_FSMONITOR_VALID in ce_uptodate
kewillford Nov 21, 2019
56854e7
trace2:gvfs:experiment: report_tracking
jeffhostetler Apr 30, 2019
0ea4810
fsmonitor: add script for debugging and update script for tests
kewillford Nov 21, 2019
fe3c6c0
trace2:gvfs:experiment: read_cache: annotate thread usage in read-cache
jeffhostetler Jun 14, 2019
ca5b2af
status: disable deserialize when verbose output requested.
jeffhostetler Apr 11, 2020
c7fe827
trace2:gvfs:experiment: read-cache: time read/write of cache-tree ext…
jeffhostetler Jul 9, 2019
c95d7bf
t7524: add test for verbose status deserialzation
jeffhostetler Apr 11, 2020
cee50ea
cache-tree: use `r` instead of `the_repository` in Trace2
jeffhostetler Jun 3, 2019
3f506e4
deserialize-status: silently fallback if we cannot read cache file
jeffhostetler May 13, 2020
f5a2f84
credential: set trace2_child_class for credential manager children
jeffhostetler Oct 3, 2019
6732b81
sub-process: do not borrow cmd pointer from caller
jeffhostetler Sep 18, 2019
efbc219
trace2:gvfs:experiment: add region to apply_virtualfilesystem()
jeffhostetler Jul 16, 2019
d108096
sub-process: add subprocess_start_argv()
jeffhostetler Sep 18, 2019
1238659
trace2:gvfs:experiment: add region around unpack_trees()
jeffhostetler Jul 16, 2019
92da9b7
sha1-file: add function to update existing loose object cache
jeffhostetler Sep 24, 2019
f6bd7f2
trace2:gvfs:experiment: add region to cache_tree_fully_valid()
jeffhostetler Jul 16, 2019
013cdd0
packfile: add install_packed_git_and_mru()
jeffhostetler Sep 25, 2019
e634df6
trace2:gvfs:experiment: add unpack_entry() counter to unpack_trees() …
jeffhostetler Jul 16, 2019
baa534c
index-pack: avoid immediate object fetch while parsing packfile
jeffhostetler Sep 24, 2019
b85217c
trace2:gvfs:experiment: increase default event depth for unpack-tree …
jeffhostetler Jul 25, 2019
4a901d3
gvfs-helper: create tool to fetch objects using the GVFS Protocol
jeffhostetler Aug 13, 2019
87d34a4
trace2:gvfs:experiment: add data for check_updates() in unpack_trees()
jeffhostetler Jul 25, 2019
a3c035b
gvfs-helper: fix race condition when creating loose object dirs
derrickstolee Oct 4, 2019
0b3bf96
Trace2:gvfs:experiment: capture more 'tracking' details
jeffhostetler Jul 26, 2019
ab54cb5
sha1-file: create shared-cache directory if it doesn't exist
jeffhostetler Oct 7, 2019
8619fee
gvfs-helper: better handling of network errors
jeffhostetler Oct 8, 2019
d7d3664
gvfs-helper-client: properly update loose cache with fetched OID
jeffhostetler Oct 8, 2019
3221f52
gvfs-helper: V2 robust retry and throttling
jeffhostetler Oct 10, 2019
6447105
gvfs-helper: expose gvfs/objects GET and POST semantics
jeffhostetler Oct 21, 2019
9131ae1
gvfs-helper: dramatically reduce progress noise
derrickstolee Oct 24, 2019
420ab55
gvfs-helper-client.h: define struct object_id
derrickstolee Nov 4, 2019
6cb9b3a
gvfs-helper: handle pack-file after single POST request
derrickstolee Nov 11, 2019
9611f50
test-gvfs-prococol, t5799: tests for gvfs-helper
jeffhostetler Oct 25, 2019
fab2d3c
gvfs-helper: move result-list construction into install functions
jeffhostetler Nov 13, 2019
8d95cab
t5799: add support for POST to return either a loose object or packfile
jeffhostetler Nov 13, 2019
e80a72e
t5799: cleanup wc-l and grep-c lines
jeffhostetler Nov 13, 2019
a14e0d8
gvfs-helper: verify loose objects after write
derrickstolee Sep 18, 2020
2c99c56
t7599: create corrupt blob test
jeffhostetler Sep 18, 2020
fac2ecf
gvfs-helper: add prefetch support
jeffhostetler Nov 11, 2019
8450ba3
gvfs-helper: add prefetch .keep file for last packfile
jeffhostetler Nov 26, 2019
8fa47c9
gvfs-helper: do one read in my_copy_fd_len_tail()
derrickstolee Dec 16, 2019
88dcbad
gvfs-helper: move content-type warning for prefetch packs
derrickstolee Dec 16, 2019
135c74b
fetch: use gvfs-helper prefetch under config
derrickstolee Dec 17, 2019
f6d254f
gvfs-helper: better support for concurrent packfile fetches
jeffhostetler Dec 18, 2019
8f6949c
remote-curl: do not call fetch-pack when using gvfs-helper
derrickstolee Feb 3, 2020
cc48a53
fetch: reprepare packs before checking connectivity
derrickstolee Mar 12, 2020
e5d0a0a
homebrew: add GitHub workflow to release Cask
mjcheetham Jul 24, 2020
363904d
gvfs-helper: retry when creating temp files
derrickstolee Dec 26, 2019
aceb3b5
upload-pack: fix race condition in error messages
derrickstolee Aug 27, 2019
46cb862
maintenance: care about gvfs.sharedCache config
derrickstolee Dec 15, 2020
8f5d3b2
unpack-trees:virtualfilesystem: Improve efficiency of clear_ce_flags
neerajsi-msft2 Feb 6, 2021
9c4f9aa
update-microsoft-git: create barebones builtin
derrickstolee Apr 29, 2021
fe121a4
update-microsoft-git: Windows implementation
derrickstolee Apr 29, 2021
d4e1e43
Merge core VFS features
dscho Jun 11, 2018
8ef44c3
Adding winget workflows
Apr 29, 2021
d572420
update-microsoft-git: use brew on macOS
derrickstolee Apr 29, 2021
1c116cd
Adding readme for microsoft/git
May 4, 2021
f86156a
Merge advanced VFS-specific features
dscho Jun 11, 2018
157ee31
Merge virtualfilesystem hook
dscho Jun 11, 2018
4ce1ba4
Merge updates to serialized status
dscho Jun 11, 2018
9d6f6c0
Merge trace2 experimental regions
jeffhostetler Apr 23, 2019
bd26e4f
Merge first wave of gvfs-helper feature
jeffhostetler Nov 14, 2019
cf8451e
Merge gvfs-helper prefetch feature
derrickstolee Dec 17, 2019
e91fda9
Merge upstreamable patches
dscho Oct 18, 2018
8046aaa
Merge pull request #301: Update 'git maintenance' to match upstream
derrickstolee Dec 15, 2020
a3a13e9
Merge pull request #315: unpack-trees:virtualfilesystem: Improve effi…
derrickstolee Feb 16, 2021
13ac150
Merge pull request #328: Adding winget workflow
derrickstolee Apr 30, 2021
c8cd509
Merge pull request #329: Add `git update-microsoft-git`
derrickstolee Apr 30, 2021
f108e7c
Implement `scalar diagnose`
dscho Apr 16, 2021
5da66c4
scalar diagnose: include disk space information
dscho Apr 22, 2021
d9f60db
scalar: teach `diagnose` to gather packfile info
mjcheetham May 19, 2021
ca8129c
scalar: teach `diagnose` to gather loose objs info
mjcheetham May 19, 2021
b589f43
ci: run Scalar's Functional Tests
dscho Jun 8, 2021
49eb47b
Merge pull request #333: update microsoft/git README
derrickstolee May 17, 2021
9f2d7f0
scalar: support the `config` command for backwards compatibility
dscho May 27, 2021
795da2f
scalar diagnose: show a spinner while staging content
dscho Apr 28, 2021
fc924e2
Merge pull request #371 from dscho/run-scalar-functional-tests-and-fi…
dscho Jun 9, 2021
e4fcd1a
git help: special-case `scalar`
dscho May 4, 2021
35046d9
scalar: enable built-in FSMonitor on `register`
mjcheetham May 19, 2021
19f014d
scalar: allow installing the command
dscho Nov 16, 2021
b9c83d5
git_config_set_multivar_in_file_gently(): add a lock timeout
dscho May 18, 2021
e93a981
scalar: implement the `help` subcommand
dscho May 18, 2021
bebd947
scalar: accept -C and -c options before the subcommand
dscho Apr 29, 2021
ca94639
scalar unregister: stop FSMonitor daemon
dscho Apr 22, 2021
9236c56
scalar: allow building and installing the documentation
dscho May 3, 2021
3b26b5c
scalar: set the config write-lock timeout to 150ms
dscho May 18, 2021
6967171
scalar: implement a minimal JSON parser
dscho Apr 26, 2021
46a4f62
scalar clone: support GVFS-enabled remote repositories
dscho Apr 16, 2021
bea642f
test-gvfs-protocol: also serve smart protocol
dscho Apr 16, 2021
bf27539
gvfs-helper: add the `endpoint` command
dscho Apr 26, 2021
f282428
dir_inside_of(): handle directory separators correctly
dscho May 14, 2021
2a08099
scalar: disable authentication in unattended mode
dscho May 6, 2021
29045b8
scalar: do initialize `gvfs.sharedCache`
dscho May 3, 2021
3f20adb
scalar diagnose: include shared cache info
dscho Jun 1, 2021
b746103
scalar: only try GVFS protocol on https:// URLs
dscho Apr 28, 2021
7cd33a7
NOT-TO-UPSTREAM: ci: build `scalar.exe`, too
dscho Apr 14, 2021
4160e44
scalar: verify that we can use a GVFS-enabled repository
dscho Apr 16, 2021
ab6a5fe
Optionally include `scalar` when building/testing Git
dscho May 4, 2021
53c5ff6
ci(windows): also run `scalar` tests
dscho Apr 14, 2021
76fd805
scalar: add the `cache-server` command
dscho Apr 23, 2021
4b44fb0
Merge branch 'scalar-reconfigure'
dscho Jun 1, 2021
7d55070
scalar: add a test toggle to skip accessing the vsts/info endpoint
dscho May 12, 2021
550a5a7
Merge branch 'scalar-diagnose'
dscho May 3, 2021
57e86de
scalar: accept `--no-fetch-commits-and-trees` for backwards compat
dscho Jan 18, 2022
d5e628a
Merge branch 'scalar-c-and-C'
dscho May 3, 2021
445b1e6
Merge branch 'scalar-and-builtin-fsmonitor'
dscho May 3, 2021
61fb5e5
Merge branch 'scalar-docs'
dscho May 3, 2021
94d9c69
Merge branch 'scalar-gentler-config-locking'
dscho May 19, 2021
0c1bcb7
Merge branch 'include-scalar-in-build'
dscho May 4, 2021
2480b5b
Merge branch 'scalar-ci'
dscho May 3, 2021
039fb50
Merge branch 'scalar-with-gvfs'
dscho May 3, 2021
dea5445
scalar: add retry logic to run_git()
derrickstolee Jun 17, 2021
19564a7
scalar: add docs from microsoft/scalar
derrickstolee Jun 16, 2021
937670f
Merge pull request #366 from dscho/features/scalar-2.32.0
dscho Jun 9, 2021
707a2da
scalar: only retry a full clone if not using GVFS protocol
derrickstolee Jun 17, 2021
bac6ab3
Merge pull request #377: Update README to include Scalar CLI details
derrickstolee Jun 17, 2021
103334b
gvfs: disable the built-in FSMonitor
dscho Jun 18, 2021
a278082
Merge pull request #378: Scalar: Fix some flaky tests with retry logi…
derrickstolee Jun 18, 2021
902de9f
Add workflow for apt-get release
dscho Jun 25, 2021
ed11dc5
Merge pull request #379 from dscho/disable-fsmonitor-with-gvfs
dscho Jun 18, 2021
6b028a5
add/rm: allow adding sparse entries when virtual
derrickstolee Jun 29, 2021
b64f53d
Merge pull request #386 from ldennington/add-release-apt-get-workflow
Jun 28, 2021
1422e97
release: create initial Windows installer build workflow
vdye Jul 16, 2021
a29bd5f
Merge pull request #392: add: allow adding sparse entries when virtual
derrickstolee Jul 1, 2021
d7e31cf
release: add Mac OSX installer build
vdye Jul 16, 2021
6b9e529
release: build unsigned Ubuntu .deb package
vdye Jul 16, 2021
334e46f
release: add signing step for .deb package
vdye Jul 16, 2021
e866507
release: create draft GitHub release with packages & installers
vdye Jul 16, 2021
d2909b3
sparse-checkout: add config to disable deleting dirs
derrickstolee Aug 22, 2021
4179663
release: continue pestering until user upgrades
derrickstolee Oct 6, 2021
258b6ab
diff: ignore sparse paths in diffstat
derrickstolee Jul 26, 2021
e0e7448
Merge pull request #399 from vdye/feature/build-installers
vdye Jul 29, 2021
6833cec
Merge branch 'sparse-index/merge' into vfs-2.33.0
derrickstolee Aug 24, 2021
d689ae5
Makefile: disable cURL warnings on gvfs-helper.c
derrickstolee Aug 3, 2021
2e5acc5
t7524: test no longer fails
derrickstolee Aug 22, 2021
7b9f737
merge-ort: ignore skip-worktree bit with virtual filesystem
derrickstolee Aug 17, 2021
38cd027
repo-settings: enable sparse index by default
derrickstolee Jun 15, 2021
ecde029
Merge pull request #410: Sparse Index: latest integrations
derrickstolee Aug 24, 2021
073590f
sparse-index: create expand_to_pattern_list()
derrickstolee Sep 3, 2021
53b9d60
dir: add path_matches_cone_mode_pattern_list()
derrickstolee Sep 3, 2021
ac26623
sparse-index: introduce partially-sparse indexes
derrickstolee Sep 3, 2021
4b9089b
cache-tree: implement cache_tree_find_path()
derrickstolee Sep 3, 2021
93ccf03
sparse-checkout: --no-sparse-index needs a full index
derrickstolee Sep 3, 2021
575a624
sparse-index: partially expand directories
derrickstolee Sep 3, 2021
7d4630d
scalar: enable untracked cache unconditionally
derrickstolee Jun 21, 2021
91aed03
sparse-index: complete partial expansion
derrickstolee Sep 3, 2021
27453a0
Use GIT_FORCE_UNTRACKED_CACHE in functional tests
derrickstolee Aug 27, 2021
b63c58e
sparse-checkout: integrate with sparse index
derrickstolee Sep 3, 2021
a42090a
Merge pull request #414: Make sparse index the default
derrickstolee Aug 26, 2021
830bbb3
dir: force untracked cache with core.untrackedCache
derrickstolee Aug 30, 2021
4b587ad
Merge pull request #421: Sparse index: integrate with the `sparse-che…
derrickstolee Sep 7, 2021
1f3da60
diff(sparse-index): verify with partially-sparse
ldennington Sep 10, 2021
d0626f1
Merge pull request #415: scalar: enable untracked cache unconditionally
derrickstolee Sep 7, 2021
61ca34f
update-index (bugfix): `--cacheinfo` should block directories
vdye Sep 10, 2021
35890c8
update-index: add tests for sparse-checkout compatibility
vdye Sep 9, 2021
eae8ffd
update-index: integrate with sparse index
vdye Sep 9, 2021
1152eff
update-index: remove sparse index expansion for --cacheinfo
vdye Sep 9, 2021
dcaf82b
p2000: explicitly turn off sparse index
derrickstolee Sep 13, 2021
efca7b1
update-index: remove unnecessary index expansion in do_reupdate
vdye Sep 9, 2021
ae36ac1
Merge pull request #419 from ldennington/sparse-index-diff
ldennington Sep 12, 2021
9bbf52e
p2000: add new commands
derrickstolee Sep 13, 2021
bbf2a6e
checkout-index: expand sparse checkout compatibility tests
vdye Sep 9, 2021
f35035d
Merge pull request #423 from vdye/sparse-index/update-index
vdye Sep 13, 2021
1db96a5
checkout-index: add `--sparse` option
vdye Sep 10, 2021
db8305d
Merge pull request #425: Sparse index: add more performance tests
derrickstolee Sep 13, 2021
2de1c62
read-tree: add performance test in p2000
vdye Sep 15, 2021
844c600
read-tree: expand sparse checkout test coverage
vdye Sep 13, 2021
7565f5d
checkout-index: integrate with sparse index
vdye Sep 10, 2021
ab18dd5
status: bugfix directory diff in sparse index
vdye Sep 14, 2021
7ee1faa
checkout-index: improve `ensure_full_index` scope in `checkout_all`
vdye Sep 10, 2021
f5ea632
read-tree: integrate with sparse index
vdye Sep 14, 2021
3376e1a
checkout-index: add performance test for `checkout-index --all`
vdye Sep 13, 2021
9a45157
read-tree: narrow scope of index expansion for `--prefix`
vdye Sep 15, 2021
73a971e
Merge pull request #424 from vdye/sparse-index/checkout-index
vdye Sep 14, 2021
be05a58
p2000: add performance test for `git stash`
vdye Sep 20, 2021
9375457
stash: integrate with sparse index
vdye Sep 16, 2021
d981457
merge-recursive: add merge function arg to `merge_recursive_generic`
vdye Sep 16, 2021
7c23363
stash: use merge-ort rather than merge-recursive
vdye Sep 16, 2021
b663ac1
Merge pull request #426 from vdye/sparse-index/read-tree
vdye Sep 20, 2021
df973a1
clean: integrate with sparse index
vdye Sep 22, 2021
eb3e0a9
Merge pull request #428 from vdye/sparse-index/stash
vdye Sep 21, 2021
f2d2cee
stash: expand testing for `git stash -u`
vdye Sep 22, 2021
4fc87b1
sequencer: avoid progress when stderr is redirected
derrickstolee Sep 23, 2021
6878bfc
Merge pull request #430 from vdye/sparse-index/clean
vdye Sep 23, 2021
759cfcf
unpack-trees: expand conditions for sparse result index
vdye Sep 24, 2021
df6bdb0
checkout-index: perform lazy index expansion for `--sparse`
vdye Sep 24, 2021
80ea258
stash: move sparse index test for `stash -u`
vdye Sep 24, 2021
ce34af5
Merge pull request #432: sequencer: avoid progress when stderr is red…
derrickstolee Sep 23, 2021
b200d3e
blame: enable and test the sparse index
ldennington Sep 17, 2021
93c48c0
Merge pull request #433 from vdye/remove-index-expansions
vdye Sep 24, 2021
658c8ec
sparse-index: fix index.sparse inline usage
vdye Oct 11, 2021
aeac8d6
Merge pull request #431 from ldennington/sparse-index-blame
ldennington Sep 27, 2021
f41d5c5
Merge pull request #444 from vdye/reset-upstream-changes
vdye Oct 13, 2021
e3214c0
sparse-checkout: disable cone mode on init with invalid patterns
vdye Nov 8, 2021
33ef86e
sparse: add vfs-specific precautions
derrickstolee Oct 31, 2021
1492d5c
sparse-checkout: require starting '/' in cone mode patterns
vdye Nov 9, 2021
2a04916
t0001: drop memory-leak check
derrickstolee Oct 31, 2021
4832bf8
Makefile: allow specifying GIT_BUILT_FROM_COMMIT
vdye Nov 30, 2021
88a550c
t1092: add compatibility tests for 'git show'
derrickstolee Nov 29, 2021
d8c11bf
maintenance: delete stale lock files
derrickstolee Nov 16, 2021
dc2d01a
Merge pull request #465 from vdye/bugfix/sparse-checkout-fixes
vdye Nov 10, 2021
ffd13a4
dist: archive HEAD instead of HEAD^{tree}
vdye Dec 2, 2021
4f88753
show: integrate with the sparse index
derrickstolee Nov 29, 2021
184196b
Merge pull request #468: maintenance: delete stale lock files, fix lo…
derrickstolee Nov 16, 2021
ff6666c
release: include GIT_BUILT_FROM_COMMIT in MacOS build
vdye Dec 2, 2021
35f09a1
Merge pull request #470: Sparse Index: integrate with `git show`
derrickstolee Dec 6, 2021
16dbd91
Merge pull request #472 from vdye/ms/macos-build-options
vdye Dec 6, 2021
fa8c986
Fix link to CLA
ronnygunawan Feb 2, 2022
2f6531a
Merge pull request #481: Fix link to CLA in README.md
derrickstolee Feb 3, 2022
556b1aa
.github: update ISSUE_TEMPLATE.md for microsoft/git
derrickstolee Mar 16, 2022
63301ef
.github: update PULL_REQUEST_TEMPLATE.md
derrickstolee Mar 16, 2022
2331939
Merge pull request #491: .github: update GitHub templates
derrickstolee Mar 16, 2022
10f51aa
reset: fix mixed reset when using virtual filesystem
Mar 15, 2017
7e32301
Merge pull request #494: reset: fix mixed reset when using virtual fi…
derrickstolee Apr 4, 2022
6b746b3
Update README.md
akashhansda Apr 4, 2022
6163052
Merge pull request #495: Update README.md
derrickstolee Apr 4, 2022
376d0e3
Silencing 404s on gvfs/config
abdurraheemali May 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
- [ ] I was not able to find an [open](https://github.com/git-for-windows/git/issues?q=is%3Aopen) or [closed](https://github.com/git-for-windows/git/issues?q=is%3Aclosed) issue matching what I'm seeing
- [ ] I was not able to find an [open](https://github.com/microsoft/git/issues?q=is%3Aopen)
or [closed](https://github.com/microsoft/git/issues?q=is%3Aclosed) issue matching
what I'm seeing, including in [the `git-for-windows/git` tracker](https://github.com/git-for-windows/git/issues).

### Setup

- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
- Which version of `microsoft/git` are you using? Is it 32-bit or 64-bit?

```
$ git --version --build-options

** insert your machine's response here **
```

- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Are you using Scalar or VFS for Git?

** insert your answer here **

If VFS for Git, then what version?

```
$ cmd.exe /c ver
$ gvfs version

** insert your machine's response here **
```

- What options did you set as part of the installation? Or did you choose the
defaults?
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

```
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
$ cmd.exe /c ver

** insert your machine's response here **
```
Expand Down Expand Up @@ -57,7 +58,11 @@ $ cat /etc/install-options.txt

** insert here **

- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
- If the problem was occurring with a specific repository, can you specify
the repository?

** insert URL here **
* [ ] Public repo: **insert URL here**
* [ ] Windows monorepo
* [ ] Office monorepo
* [ ] Other Microsoft-internal repo: **insert name here**
* [ ] Other internal repo.
25 changes: 8 additions & 17 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
Thanks for taking the time to contribute to Git!

Those seeking to contribute to the Git for Windows fork should see
http://gitforwindows.org/#contribute on how to contribute Windows specific
enhancements.

If your contribution is for the core Git functions and documentation
please be aware that the Git community does not use the github.com issues
or pull request mechanism for their contributions.

Instead, we use the Git mailing list (git@vger.kernel.org) for code and
documentation submissions, code reviews, and bug reports. The
mailing list is plain text only (anything with HTML is sent directly
to the spam folder).

Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
to conveniently send your Pull Requests commits to our mailing list.

Please read the "guidelines for contributing" linked above!
This fork contains changes specific to monorepo scenarios. If you are an
external contributor, then please detail your reason for submitting to
this fork:

* [ ] This is an early version of work already under review upstream.
* [ ] This change only applies to interactions with Azure DevOps and the
GVFS Protocol.
* [ ] This change only applies to the virtualization hook and VFS for Git.
117 changes: 117 additions & 0 deletions .github/scripts/sign-debian-packages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import json
import os
import glob
import pprint
import subprocess
import sys

esrp_tool = os.path.join("esrp", "tools", "EsrpClient.exe")

AAD_ID = "38aa33bc-a7e7-4007-bfb2-e8b17f04aadc"
WORKSPACE = os.environ['GITHUB_WORKSPACE'].strip()
ARTIFACTS_DIR = os.environ['ARTIFACTS_DIR'].strip()

def main():
source_root_location = os.path.join(WORKSPACE, ARTIFACTS_DIR, "unsigned")
destination_location = os.path.join(WORKSPACE, ARTIFACTS_DIR)

files = glob.glob(os.path.join(source_root_location, "*.deb"))

print("Found files:")
pprint.pp(files)

if len(files) < 1 or not files[0].endswith(".deb"):
print("Error: cannot find .deb to sign")
exit(1)

file_to_sign = os.path.basename(files[0])

auth_json = {
"Version": "1.0.0",
"AuthenticationType": "AAD_CERT",
"TenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"ClientId": AAD_ID,
"AuthCert": {
"SubjectName": f"CN={AAD_ID}.microsoft.com",
"StoreLocation": "LocalMachine",
"StoreName": "My",
},
"RequestSigningCert": {
"SubjectName": f"CN={AAD_ID}",
"StoreLocation": "LocalMachine",
"StoreName": "My",
}
}

input_json = {
"Version": "1.0.0",
"SignBatches": [
{
"SourceLocationType": "UNC",
"SourceRootDirectory": source_root_location,
"DestinationLocationType": "UNC",
"DestinationRootDirectory": destination_location,
"SignRequestFiles": [
{
"CustomerCorrelationId": "01A7F55F-6CDD-4123-B255-77E6F212CDAD",
"SourceLocation": file_to_sign,
"DestinationLocation": os.path.join("signed", file_to_sign),
}
],
"SigningInfo": {
"Operations": [
{
"KeyCode": "CP-450779-Pgp",
"OperationCode": "LinuxSign",
"Parameters": {},
"ToolName": "sign",
"ToolVersion": "1.0",
}
]
}
}
]
}

policy_json = {
"Version": "1.0.0",
"Intent": "production release",
"ContentType": "Debian package",
}

configs = [
("auth.json", auth_json),
("input.json", input_json),
("policy.json", policy_json),
]

for filename, data in configs:
with open(filename, 'w') as fp:
json.dump(data, fp)

# Run ESRP Client
esrp_out = "esrp_out.json"
result = subprocess.run(
[esrp_tool, "sign",
"-a", "auth.json",
"-i", "input.json",
"-p", "policy.json",
"-o", esrp_out,
"-l", "Verbose"],
cwd=WORKSPACE)

if result.returncode != 0:
print("Failed to run ESRPClient.exe")
sys.exit(1)

if os.path.isfile(esrp_out):
print("ESRP output json:")
with open(esrp_out, 'r') as fp:
pprint.pp(json.load(fp))

signed_file = os.path.join(destination_location, "signed", file_to_sign)
if os.path.isfile(signed_file):
print(f"Success!\nSigned {signed_file}")

if __name__ == "__main__":
main()
Loading