Commit Graph

10 Commits

Author SHA1 Message Date
rick olson
7d003a17c6 git: run 'config' from dir based on *Configuration 2017-10-25 19:46:36 -06:00
rick olson
1fe966ac10 subprocess: add helper for consistent trace messages 2017-10-25 19:33:16 -06:00
Lars Schneider
f06601cab5 git: add git[NoLFS]Buffered() to run a Git processes with buffered output
Replicate `lfs/gitscanner_cmd` in `subprocess/buffered_cmd` using
subprocess/cmd. In subsequent commits we will migrate all functions
users of `lfs/gitscanner_cmd` to `subprocess/buffered_cmd` and
afterwards remove `lfs/gitscanner_cmd`.
2017-08-22 19:34:29 +02:00
Taylor Jones
be73bc08dd Fix for #1874
Created subprocess.Cmd wrapper to autoclose any created pipes
Removing original fix for #1860
2017-01-19 09:37:26 -05:00
Brett Randall
d06e97b37d Removed Go 1.6-specific API changes introduced in the previous commit. This commit can be reverted as soon as Go >= 1.6 is required.
This commit copies-down some utility methods introduced as part of the API change in Go 1.6.  These changes are convenient to use here, since they auto-truncate stderr error output.

Revert this commit when moving to Go 1.6.
2016-06-30 12:05:30 +10:00
Brett Randall
77734205b8 Stop SimpleExec swallowing errors. Fixed #1183.
ExitError conditions now return a plain error with message like:

    Error running git [config --system filter.lfs.clean git-lfs clean -- %f]: 'error: could not lock config file /etc/gitconfig: Permission denied' 'exit status 255'

Also:

* Made Set/Unset Config commands return errors when they occur.
* Made install attribute set fail properly with an error message e.g. if permission-denied.  Previously this failed silently and reported success.

***NOTE*** this commit contains Go 1.6-specific APIs.  The following commit will remove those, and that following commit can be reverted when Go >= 1.6 is required.
2016-06-30 12:05:30 +10:00
Taylor Blau
4593d0a641 vendor: vendor dependencies in vendor/ using Glide
- script/vendor received an update in order to work with Glide
- import paths have been rewritten to work with GO15VENDOREXPERIMENT
2016-05-23 12:10:35 -06:00
Steve Streeting
ab53c53e72 Document that our package structure is not guaranteed to be stable 2016-05-18 11:43:42 +01:00
Steve Streeting
e0972e4efc Move TTY wrapper to subprocess package, makes more sense now it exists 2016-03-17 15:05:32 +00:00
Steve Streeting
d27a09e50f Refactor execCommand and simpleExec into separate package 2016-03-08 16:48:07 +00:00