Commit Graph

39 Commits

Author SHA1 Message Date
Tim Hockin 81c8b2f39e Clean up askpass_URL
* Tighten git e2e shim
  - exit on errors'
  - simpler
  - don't set XDG_CONFIG_HOME

* Reword help strings and logs
2022-07-03 11:25:47 -07:00
Tim Hockin f94cd1d4dd README: Break flags into sections 2022-03-08 09:06:57 -08:00
Tim Hockin 3ffc83e29e Clean up README table end-of-line 2022-03-08 08:58:28 -08:00
Tim Hockin 0d88253338 Re-order columns in README 2022-03-08 08:58:27 -08:00
Tim Hockin c21cbbb472 Remove analytics link 2022-03-08 08:57:50 -08:00
Tim Hockin f4e4db5325 Sync README to current flags 2022-03-08 08:56:29 -08:00
yedamo a7acf14da7 fix typo 2021-11-20 13:08:19 +08:00
Tim Hockin 9835c219d0 Fix env var names 2021-08-17 08:26:59 -07:00
ugurkenar df69fab365 cmd,hook and logging package 2021-08-16 12:40:27 +03:00
Tim Hockin 2a81ea69f0 Add option to read passwd from file
This is a port of #431.

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.
2. If `--username` is specified, then one of `--password` or
`--password-file` must be specified.
2021-07-05 15:49:18 -07:00
Tim Hockin 2abd898038 Update README to spec UID/GID 2021-06-04 15:59:36 -07:00
Spencer Malone 07e552b506 Add support for sparse-checkout 2021-04-23 08:17:58 -07:00
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
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
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
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 66320a6b92
Merge pull request #243 from killuazhu/kyle-relax-wait
Relax wait between sync
2020-09-25 10:30:26 -07:00
Tim Hockin 89aad82a31 Minor tweaks to submodules strings & consts
Rename consts internally and shorten help string a bit.
2020-09-04 20:06:44 -07:00
alix.cook11 dcf169c10a
add option to NOT recursively clone submodules (#246)
* add option to NOT recursively clone submodules

* Add "shallow" and "off" modes to submodule clone

* update readme to reflect new flag

* wording and such feedback
2020-07-30 21:29:07 -07:00
Kyle Zhu 1546e3415f
Reduce wait time 2020-04-24 17:32:32 -04:00
Kyle Zhu c1d4d77216
Relax wait between sync 2020-04-24 15:21:09 -04:00
Jim Angel 55b3e5e6ef added table for env vars 2020-02-10 16:09:47 -06:00
Tim Hockin 0057fac0a4 Clean up docs 2019-11-26 14:12:47 -08:00
Tim Hockin 59c5910890
Merge branch 'master' into master 2019-01-23 08:04:22 -08:00
Thomas Jackson 87503c6dce Clarify webhook behavior in docs/README 2019-01-22 14:12:49 -08:00
Thomas Jackson 9bfa91b0af Update README to new flags 2019-01-22 14:12:49 -08:00
Thomas Jackson 5c63dc9cb5 Update README based on comments in #110 2019-01-22 14:12:49 -08:00
Zac e437d8e9a3 adding changes from previous PR, updated README 2019-01-22 14:12:49 -08:00
chris060986 ea7c288dc3 Add proxy support to build 2018-12-20 14:41:06 +01:00
Joshua Carp 1415acdf0e Update example volume mount
Since the default clone path is $HOME/git and the docker image sets $HOME to /tmp, we have to mount the volume at `/tmp/git` for the container to write files to the volume. As written, the example doesn't write to the volume.
2018-12-17 10:57:06 -08:00
mattjmcnaughton 71ea5e8473 Fix README
The README instructs the user to overwrite the TAG variable to set the
tag on `make container`. However, the user should actually overwrite the
`VERSION` variable.
2018-06-01 08:11:24 -07:00
Michael Grosser 237fc1c63e Fix typo 2017-02-06 20:30:35 +00:00
Tim Hockin be407edce3 update README 2016-09-16 08:35:27 -07:00
Tim Hockin 0a403496bf Fix README to actually run 2016-09-16 08:35:26 -07:00
Tim Hockin 2a7645cb0f Scrub 'contrib' 2016-08-20 14:17:17 -07:00
Tim Hockin ad53194601 Add files from github.com/kubernetes/contrib/git-sync 2016-08-20 14:14:27 -07:00