Commit Graph

12 Commits

Author SHA1 Message Date
risk danger olson
6113ef7af2 lfs: modify system config only if --system is set 2017-01-25 06:32:21 -07:00
risk danger olson
df09f201a6 commands: teach uninstall cmd about --local and --system 2017-01-24 16:33:29 -07:00
risk danger olson
bba8f3b876 update package imports 2016-11-15 10:01:18 -07:00
Steve Streeting
87727a206b Automatically upgrade old filters instead of requiring —force
Also remove upgrade path for `git-media` since over-general and should
not be needed any more
2016-09-01 12:29:49 +01:00
risk danger olson
a3a4e5b78e errors: remove GetInnerError() and ErrorWithStack 2016-08-18 15:43:28 -06: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
Brett Randall
648d8c78a8 Added --system option to install command. This option is invoked from post-install scripts in rpm/deb packages. 2016-06-30 12:05:30 +10:00
Brett Randall
fb1e26ceb8 Config attribute operations now auto-elevate to system scope from global if running as the root user (unless --local is specified), using the new System-level config commands. 2016-06-30 12:01:48 +10:00
Steve Streeting
95d687298d Use --global to determine if needs to set a global attribute
Should match --local behavior; otherwise Attribute can think it
doesn't have to set a value when in fact it does
2015-10-21 16:36:31 +01:00
Rick Olson
82ac4ac7e3 teach init about --local flag 2015-09-23 11:58:16 -06:00
Taylor Blau
e56d63064c lfs/attribute, hook: rename Path to Section, nuke HookType type 2015-09-02 14:57:09 -04:00
Taylor Blau
0aba23980d lfs/filters+attributes: drop the Filter type for Attribute
The old `Filter` type represented a far too specific type of attribute.
Instead, a generic alternative called `Attribute` is favored, which more more
closely matches the type of structure defined in
http://git-scm.com/docs/gitattributes.
2015-09-01 18:20:01 -04:00