inspec/lib
Sonu Saha 65bd83f6ed
CHEF-6000: Fix URL fetcher failure to work when current directory is not a Git repository (#7023)
* fix: use git gem to perform git remote show
this fixes the issue to perform git remote show when dir is not a git dir

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* test: update test with default_ref stubbing

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: remove stubs which are not required

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: remove unused method

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* test: fix broken test due to changes in url fetcher

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: improve error message to be user-friendly
this makes the error message as earlier one

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: change error message:

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* revert: remove git gem dependency and use shellout

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* fix: update url fetcher to use ls-remote to make it work in non-git dirs

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-04-30 11:35:03 +05:30
..
bundles Test cases and documentation added 2021-11-29 19:12:30 +05:30
inspec CHEF-6000: Fix URL fetcher failure to work when current directory is not a Git repository (#7023) 2024-04-30 11:35:03 +05:30
matchers Allow the negate formating for cmp (#6862) 2024-02-20 14:59:54 +05:30
plugins Adds unit test for progress bar streaming reporter (#6970) 2024-02-08 16:07:59 +05:30
source_readers Add ability to export metadata and README 2022-05-13 00:31:32 +05:30
inspec.rb Licensing - Integrates Software Entitlement (#13) 2023-03-27 10:26:35 -04:00