Tim Hockin
e06f9c6acb
E2E: Make SIGINT handling more complete
2021-10-18 09:36:52 -07:00
Tim Hockin
7b3454e51b
E2E: Use vars for branch names
2021-10-18 09:36:52 -07:00
Tim Hockin
286175cb94
E2E: always use '[[ ]]'
2021-10-18 09:36:52 -07:00
Tim Hockin
a91777288a
use branch revision during worktree add (v4)
...
This is a port of the v3 commit 2c3bb035f6
2021-10-18 09:32:57 -07:00
Tim Hockin
4d286fc44f
Fix e2e cases to not destroy logs
2021-10-18 09:32:57 -07:00
Kubernetes Prow Robot
80b7774dc0
Merge pull request #441 from thockin/master
...
Make exechooks work like webhooks.
2021-08-18 13:59:45 -07:00
Tim Hockin
05f0476d63
Fix env var names
2021-08-17 08:28:15 -07:00
Tim Hockin
0ea10cbbc2
Add one call depth to compensate for log pkg
2021-08-16 23:45:10 -07:00
Tim Hockin
dc02fd98c0
Make logging and exec members of the git struct
...
Otherwise they are floating global pointers, which sucks in tests.
2021-08-16 23:21:26 -07:00
Tim Hockin
0075df238c
Make exechooks work like webhooks.
...
This deprecates the `--sync-hook-command` flag in favor of
`--exechook-command`, `--exechook-timeout`, and `--exechook-backoff`.
2021-08-16 23:21:20 -07:00
Kubernetes Prow Robot
766682c5fa
Merge pull request #436 from thockin/master
...
Small nits I found with password-file while porting #431
2021-07-06 00:22:18 -07:00
Tim Hockin
18947d3e37
Small nits I found with password-fil while porting
...
Forgot the manual entry for it, tweaked some words.
2021-07-05 15:39:56 -07:00
Kubernetes Prow Robot
83d9a44f4f
Merge pull request #431 from zhouhaibing089/flag-password-file
...
Add option to read password from file
2021-07-05 15:21:38 -07:00
Haibing Zhou
6076daf3c4
Add option to read password from file
...
A new flag `--password-file` is added. This allows git-sync to read
password from file and this is considered as safer than reading from
env or flag directly.
Few more checks are added as well:
1. `--password` and `--password-file` can't be specified at the same
time.
1. If `--username` is specified, then one of `--password` or
`--password-file` must be specified.
2021-07-05 14:34:03 -07:00
Kubernetes Prow Robot
8003e8cc1b
Merge pull request #434 from xinydev/remove-broken-links
...
Remove broken analytics links
2021-07-04 15:30:19 -07:00
XinYang
78a1cffbd3
remove broken analytics links
...
Signed-off-by: XinYang <xinydev@gmail.com>
2021-07-03 23:51:53 +08:00
Kubernetes Prow Robot
78a7aa0cb7
Merge pull request #433 from thockin/master
...
Bump base image version (v4 branch)
2021-07-01 13:53:51 -07:00
Tim Hockin
5d9abd7bdf
Bump base image version
2021-07-01 13:50:18 -07:00
Kubernetes Prow Robot
3757ce7f85
Merge pull request #427 from thockin/master
...
Update RELEASING doc (v4 branch)
2021-06-24 10:17:41 -07:00
Tim Hockin
22727fb813
Update RELEASING doc
2021-06-24 09:00:10 -07:00
Kubernetes Prow Robot
2671030f3f
Merge pull request #420 from thockin/master
...
Add Janet and Nan as approvers (master)
2021-06-24 05:35:41 -07:00
Kubernetes Prow Robot
c70b5ac3a2
Merge pull request #421 from thockin/v4-port-413
...
Handle a race between ls-remote and fetch
2021-06-23 14:34:11 -07:00
Tim Hockin
d1afc12e67
Handle a race between ls-remote and fetch
...
This is a port of PR #413 .
2021-06-23 12:51:15 -07:00
Tim Hockin
ab0fe416de
Rename slow_git to slow_git_clone
...
Making room for slow_git_fetch upcoming.
2021-06-23 12:28:12 -07:00
Tim Hockin
dcbebf05b3
Add Janet and Nan as approvers
...
They are using git-sync and have had a bunch of ideas for improvements.
I have had a hard time finding enough time to devote to this and they
offered to help.
2021-06-23 09:59:15 -07:00
Kubernetes Prow Robot
a8b0acef1d
Merge pull request #418 from thockin/master
...
Clean up worktree dirs during sync loop
2021-06-22 18:02:10 -07:00
Tim Hockin
530ac2899b
Clean up worktree dirs during sync loop
...
Avoid "already exists" error. This is a port of #412 but I changed
the e2e to use `docker pause`.
2021-06-22 15:07:16 -07:00
Tim Hockin
9b1bfc7a97
Make e2e pass on v4
2021-06-22 15:04:00 -07:00
Tim Hockin
16c89cec6f
Don't use global variables (flags)
...
'
2021-06-22 15:04:00 -07:00
Tim Hockin
476fba3d3e
Use plflag, not flag
...
Make it harder to accidentally mess this up again.
2021-06-22 15:04:00 -07:00
Tim Hockin
c6878026a1
unbreak e2e for github
2021-06-22 08:29:30 -07:00
Kubernetes Prow Robot
bce1306613
Merge pull request #406 from thockin/master
...
bump to logr v1.0.0-rc1 (v4)
2021-06-16 14:08:00 -07:00
Kubernetes Prow Robot
bf2b854690
Merge pull request #407 from briantkennedy/response
...
Improve error message for askpass.
2021-06-15 14:11:43 -07:00
Brian Kennedy
a87c78665d
Improve error message for askpass.
...
When endpoint returns non-200 status, include the body in the error
message since it can contain useful information for debugging. Also
defer closing the response body ReadCloser as this may have leaked in
the past.
2021-06-15 13:26:32 -07:00
Tim Hockin
841b4894c7
bump to logr v1.0.0-rc1 (v4)
2021-06-13 11:02:03 -07:00
Tim Hockin
903d86dd66
Update README to spec UID/GID
2021-06-04 16:00:26 -07:00
Tim Hockin
ffe2ac4d2f
Change libcurl workaround to be less precise
2021-05-29 09:17:06 -07:00
Kubernetes Prow Robot
5918570aac
Merge pull request #399 from thockin/master
...
Downgrade libcurl to work around HTTP bug (v4)
2021-05-29 06:20:25 -07:00
Tim Hockin
421fc4e298
Add a testcase for github HTTPS
2021-05-28 14:18:58 -07:00
Tim Hockin
5ecd341782
Downgrade libcurl to avoid HTTP bug
2021-05-27 10:18:34 -07:00
Tim Hockin
79de193be5
Dockerfile: apt install with --no-install-recommends
2021-05-27 10:02:02 -07:00
Tim Hockin
8b4f7d5be5
Dockerfile: use apt-get (more stable)
2021-05-27 09:59:58 -07:00
Tim Hockin
394a460405
Makefile: plain output when building container
2021-05-27 09:57:58 -07:00
Tim Hockin
48bc7fbbf9
Dockerfile: use multi-stage for cleaner result
2021-05-27 09:56:29 -07:00
Tim Hockin
0222a95f29
Make sure all code files have headers
2021-05-27 08:46:00 -07:00
Tim Hockin
f96cdbca17
Small error string cleanup
2021-05-26 17:04:06 -07:00
Kubernetes Prow Robot
581139e56c
Merge pull request #390 from nan-yu/master
...
Grant read access for the error file to all users
2021-05-26 14:49:38 -07:00
Nan Yu
c05d17c50c
Grant read access for the error file to all users
2021-05-26 14:35:29 -07:00
Tim Hockin
16c3bf7dd1
move test cleanup to the end
2021-05-26 14:31:16 -07:00
Kubernetes Prow Robot
5e9516d2b4
Merge pull request #386 from thockin/master
...
Clean up global flRoot use (v4)
2021-05-21 17:15:37 -07:00