Tim Hockin
45bba183ca
Add --git-config flag
...
This allows arbitrary git configs to be passed in. For example:
`git config --global http.postBuffer 1048576000`
`git config --global http.sslCAInfo /path/to/cert/file`
`git config --global http.sslVerify false`
This flag takes a comma-separated list of `key:val` pairs. The key part
is passed to `git config` and must be a valid gitconfig section header
and variable name. The val part can be either a quoted or unquoted
value. For all values the following escape sequences are supported:
* `\n` => [newline]
* `\t` => [tab]
* `\"` => `"`
* `\,` => `,`
* `\\` => `\`
Within unquoted values, commas MUST be escaped. Within quoted values,
commas MAY be escaped, but are not required to be. Any other escape
sequence is an error.
Example:
`--git-config=foo.one:val1,foo.two:"quoted val",foo.three:12345`
This commit exposed a bug in runCommand() which modified its args when
they had an embedded space.
2021-03-10 19:07:05 -08:00
Tim Hockin
05a099a964
Update debian base and golang images
2021-02-12 11:39:09 -08:00
Kubernetes Prow Robot
95cb2dcbd3
Merge pull request #333 from thockin/v3-e2e-use-docker-nc
...
Use docker to run helper servers in e2e
2021-02-03 03:04:28 -08:00
Tim Hockin
a524d5eacd
Use docker to run helper servers in e2e
...
Reliably cleaning up leftover things like nc processes is surprisingly
difficult in pure shell. e2e passes on the 3.x branch now.
2021-01-23 15:56:08 -08:00
Kubernetes Prow Robot
801413b5c7
Merge pull request #329 from thockin/release-3.x
...
Default --root flag in container
2021-01-22 04:35:27 -08:00
Tim Hockin
e7806f577f
Default --root flag in container
...
This makes the container easier to use and allows docker volumes to be
used in a more obvious way.
2021-01-21 12:32:51 -08:00
Kubernetes Prow Robot
2ddc693755
Merge pull request #327 from thockin/release-3.x
...
Add an example pod YAML
2021-01-21 01:53:01 -08:00
Tim Hockin
939d273bec
Add an example pod YAML
2021-01-20 16:24:40 -08:00
Tim Hockin
a37a672b40
Fix e2e to always specify branch name
...
As git changes the default from "master" to "main", it's not
predictable. Now the test owns the decision.
2021-01-07 09:44:34 -08:00
Kubernetes Prow Robot
e3a21300de
Merge pull request #321 from thockin/release-3.x
...
Allow octal and hex values for int flags
2021-01-07 05:57:46 -08:00
Tim Hockin
ffba2eb119
Allow octal and hex values for int flags
...
This is specifcally relevant to --change-permissions.
2021-01-06 13:49:02 -08:00
Kubernetes Prow Robot
8ce96b33d3
Merge pull request #317 from thockin/release-3.x
...
Change CONTRIBUTING.md to CNCF CLA
2020-12-23 11:30:27 -08:00
Tim Hockin
f71f5b9650
Change CONTRIBUTING.md to CNCF CLA
2020-12-23 10:57:36 -08:00
Kubernetes Prow Robot
5996005bea
Merge pull request #295 from daixiang0/doc
...
README: add buildx comment
2020-10-28 09:07:56 -07:00
Xiang Dai
7df021c9ff
README: add buildx comment
...
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-10-28 16:44:00 +08:00
Kubernetes Prow Robot
c72a880352
Merge pull request #294 from andres-lowrie/master
...
docs: add PAT option for `--password`
2020-10-11 10:48:47 -07:00
Kubernetes Prow Robot
cdc62dead8
Merge pull request #293 from stp-ip/lineBreaksReadme
...
Fix line breaks in README
2020-10-06 13:36:43 -07:00
Andres Lowrie
3c79569bd7
docs: add PAT option for `--password`
...
This could help users that are not aware that github personal access tokens can be used as passwords. It's verbose could be helpful
2020-10-06 11:23:18 -05:00
Michael Grosser
decb118c58
Fix line breaks in README
2020-10-06 15:04:38 +00:00
Kubernetes Prow Robot
5467f372bb
Merge pull request #292 from thockin/e2e-vflag
...
Move --v into e2e framework (always same value)
2020-10-04 07:23:06 -07:00
Tim Hockin
771011f0cc
Move --v into e2e framework (always same)
2020-10-02 14:38:19 -07:00
Kubernetes Prow Robot
410c5950b8
Merge pull request #285 from unknowingknow/add-sync-hook-command
...
add an option to run the command when the repository is updated
2020-10-02 13:13:04 -07:00
unknowingknow
9661d3132e
add e2e test for --sync-hook-command
2020-10-02 19:29:21 +09:00
unknowingknow
26cd942b2a
change to a command name with no args
2020-10-02 19:29:03 +09:00
unknowingknow
e1c4717de6
add an option to run the command when the repository is updated
2020-10-02 19:28:25 +09:00
Kubernetes Prow Robot
94f13f483f
Merge pull request #291 from thockin/logtostderr
...
logtostderr defaults to true: don't set it in test
2020-09-29 04:53:27 -07:00
Tim Hockin
1992a2bfab
logtostderr defaults to true: don't set it in test
2020-09-28 16:31:33 -07:00
Tim Hockin
44e94a16b0
Fix webhook regression: allow -1 to ignore status
2020-09-25 11:17:56 -07:00
Kubernetes Prow Robot
66320a6b92
Merge pull request #243 from killuazhu/kyle-relax-wait
...
Relax wait between sync
2020-09-25 10:30:26 -07:00
Kubernetes Prow Robot
57ee2d1e70
Merge pull request #282 from thockin/staging
...
Use new staging GCR
2020-09-08 09:19:43 -07:00
Kubernetes Prow Robot
b57238d575
Merge pull request #280 from davidkarlsen/socat
...
add socat to image to allow for proxying. Fixes #279
2020-09-08 09:17:43 -07:00
David Karlsen
3b52b63327
add documentation
...
Signed-off-by: David Karlsen <david@davidkarlsen.com>
2020-09-08 12:25:11 +02:00
Tim Hockin
7d89f343be
Use new staging GCR
2020-09-07 17:28:57 -07:00
Kubernetes Prow Robot
428ffb71bb
Merge pull request #278 from thockin/10-askpass-url-as-arg
...
Clean up askpass function to take url as arg
2020-09-07 17:19:43 -07:00
Tim Hockin
4225d000e0
Clean up askpass function to take url as arg
2020-09-07 17:16:56 -07:00
Kubernetes Prow Robot
ed57c29d83
Merge pull request #275 from thockin/7-askpass-metric
...
Add metric for askpass, noop sync != success
2020-09-07 17:11:42 -07:00
Kubernetes Prow Robot
2baf53e1c3
Merge pull request #268 from thockin/multiarch-via-buildx
...
Multiarch via buildx
2020-09-07 16:57:42 -07:00
David Karlsen
48c7b9aa02
add socat to image to allow for proxying. #279
...
Signed-off-by: David Karlsen <david@davidkarlsen.com>
2020-09-06 18:59:05 +02:00
Kubernetes Prow Robot
c210398e92
Merge pull request #273 from thockin/5-flag-input-checking
...
Improve flag input checking and errors
2020-09-05 10:33:41 -07:00
Tim Hockin
9cef5f8ced
Improve flag input checking and errors
2020-09-05 10:30:25 -07:00
Kubernetes Prow Robot
f67c13654e
Merge pull request #277 from thockin/9-better-logs
...
Better logs and errors
2020-09-05 10:27:40 -07:00
Kubernetes Prow Robot
9c56b25591
Merge pull request #276 from thockin/8-use-filepath
...
use filepath.Join, drop dep on path
2020-09-05 10:25:41 -07:00
Tim Hockin
04c85ee1dc
Add metric for askpass, noop sync != success
2020-09-05 10:24:08 -07:00
Kubernetes Prow Robot
37f74f46fe
Merge pull request #274 from thockin/6-better-run-logs
...
Improve logs when running a command
2020-09-05 10:21:41 -07:00
Kubernetes Prow Robot
7d63180e78
Merge pull request #272 from thockin/4-move-setFlagDefaults
...
Move setFlagDefaults closer to flag code
2020-09-05 10:17:41 -07:00
Kubernetes Prow Robot
c4f83fdae3
Merge pull request #271 from thockin/3-submod-strings
...
Minor tweaks to submodules strings & consts
2020-09-05 10:15:41 -07:00
Kubernetes Prow Robot
16e2818704
Merge pull request #270 from thockin/2-useless-test
...
Remove useless test case
2020-09-05 10:13:40 -07:00
Tim Hockin
8f87fd8397
Fix multi-arch build support
...
Buildx seems to do what we need.
2020-09-04 23:01:45 -07:00
Tim Hockin
e43fb2513e
Better logs and errors
2020-09-04 20:14:51 -07:00
Tim Hockin
07b1ab7572
use filepth.Join, drop dep on path
2020-09-04 20:13:22 -07:00