Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for-each-repo: do nothing on empty config
'git for-each-repo --config=X' should return success without calling any subcommands when the config key 'X' has no value. The current implementation instead segfaults. A user could run into this issue if they used 'git maintenance start' to initialize their cron schedule using 'git for-each-repo --config=maintenance.repo ...' but then using 'git maintenance unregister' to remove the config option. (Note: 'git maintenance stop' would remove the config _and_ remove the cron schedule.) Add a simple test to ensure this works. Reported-by: Andreas Bühmann <dev@uuml.de> Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
- Loading branch information