703c765ec8
gitutil: check git bash env when testing
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-01-25 15:06:32 +01:00
fb2c62a038
build: resolve 8.3 filename format to long one on Windows
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-01-25 15:06:32 +01:00
ac5b3241b1
gitutil: sanitize root dir on WSL
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2023-12-19 09:27:32 +01:00
6028094e6b
gitutil: find default remote by tracking branch
...
Using this command resolves remote based on remote
tracking branch of the curently selected branch and
should be more precise in case we can't predict if user
uses origin to mark upstream or their fork.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2023-11-30 23:33:51 -08:00
c47eb3bf5a
git: propogate failure to locate git binary
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-08-22 12:16:19 +01:00
48d7dafbd5
git: update gitutil test utilities
...
- Adds a new GitServeHTTP function to start an http server to serve a
target git repository.
- Adds a new GitDir helper method to get the path to the .git
directory
- Updates the GitAdd method to take a variable number of files
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:15:19 +02:00
15eb6418e8
build: strip credentials from remote url on collecting Git provenance info
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-03-06 17:00:05 +01:00
d4a4aaf509
Remove git warning: buildx/1633
...
Signed-off-by: David Gageot <david.gageot@docker.com >
2023-02-16 07:36:24 +01:00
fd5884189c
build: check reachable git commits
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-02-08 12:46:04 +01:00
a8eb2a7fbe
gitutil: override the locale to ensure consistent output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-02-07 13:26:28 +01:00
c1058c17aa
build: set remote origin url
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-01-25 18:15:05 +01:00
0d1fea8134
build: warn if git operation fails
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-15 23:40:19 +01:00
19417e76e7
build: lookup the right git binary on WSL
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-15 21:16:37 +01:00
6ad5e2fcf3
build: set provenance vcs details
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-14 00:09:38 +01:00