Skip to content

Commit

Permalink
Update Makefile to use GitoxideLabs URLs
Browse files Browse the repository at this point in the history
For the `update-curl-fixtures` rule.

Two kinds of URLs are changed:

- Old `Byron/gitoxide` URLs changed to `GitoxideLabs/gitoxide`.

- The `Byron/foo` URL, used to obtain a 404 response, is changed to
  `GitoxideLabs/foo`, which likewise does not exist.

Running `make update-curl-fixtures`, stashing, applying the change
committed here, then running `make update-curl-fixtures` again and
doing a cursory comparison to the stash indicates that this change
appears not to have broken `update-curl-fixtures`.
  • Loading branch information
EliahKagan committed Oct 14, 2024
1 parent 507579e commit 1ea08bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ $(baseline_asset_fixture):
sed -i '' 's/master/main/g' $$(find . -type f)

transport_fixtures = gix-transport/tests/fixtures
base_url = https://github.com/Byron/gitoxide.git
base_url = https://github.com/GitoxideLabs/gitoxide.git
update-curl-fixtures: ## use curl to fetch raw fixtures for use in unit test. Changes there might break them
curl -D - -L "$(base_url)/info/refs?service=git-upload-pack" > $(transport_fixtures)/v1/http-handshake.response
curl -D - -H 'Git-Protocol: version=2' -L "$(base_url)/info/refs?service=git-upload-pack" > $(transport_fixtures)/v2/http-handshake.response
curl -H 'User-Agent: git/oxide-0.1.0' -D - -H 'Git-Protocol: version=1' -L "https://github.com/Byron/foo/info/refs?service=git-upload-pack" > $(transport_fixtures)/http-401.response
curl -D - -H 'Git-Protocol: version=1' -L "https://github.com/Byron/gitoxide/info/refs?service=git-upload-pack" > $(transport_fixtures)/http-404.response
curl -H 'User-Agent: git/oxide-0.1.0' -D - -H 'Git-Protocol: version=1' -L "https://github.com/GitoxideLabs/foo/info/refs?service=git-upload-pack" > $(transport_fixtures)/http-401.response
curl -D - -H 'Git-Protocol: version=1' -L "https://github.com/GitoxideLabs/gitoxide/info/refs?service=git-upload-pack" > $(transport_fixtures)/http-404.response

update-assets: $(baseline_asset_fixture) ## refresh assets compiled into the binaries from their source
-rm -Rf $(baseline_asset_dir)
Expand Down

0 comments on commit 1ea08bf

Please sign in to comment.