Skip to content

Commit

Permalink
EdkRepo: Do not attempt to resolve None as path
Browse files Browse the repository at this point in the history
Check for args.project before attempting to determine if it's pointing
to a file

Signed-off-by: Kevin Sun <[email protected]>
  • Loading branch information
kevinsun49 authored and ashedesimone committed Sep 26, 2023
1 parent 47a112e commit 299f5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edkrepo/commands/cache_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run_command(self, args, config):
# State is enabled so make sure cache directory exists
cache_obj = get_repo_cache_obj(config)

if not args.selective and os.path.exists(args.project):
if not args.selective and not (args.project and os.path.isfile(args.project)) and not args.info:
pull_all_manifest_repos(config['cfg_file'], config['user_cfg_file'])

# Check to see if a manifest was provided and add any missing remotes
Expand Down

0 comments on commit 299f5f9

Please sign in to comment.