lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.7 vs lib/neetob/cli/github/make_pr/script.rb in neetob-0.4.8
- old
+ new
@@ -33,11 +33,11 @@
delete_and_create_temp_neetob_dir
matching_repos.each do |repo|
ui.info("\n Working on #{repo} \n")
begin
if local
- unless Dir.exist?("./#{repo}")
- ui.error("#{repo} don't exist in current dir")
+ unless Dir.exist?("./#{repo_name_without_org_suffix(repo)}")
+ ui.error("#{repo_name_without_org_suffix(repo)} don't exist in current dir")
next
end
stash_local_changes(repo, local)
end
shallow_clone_repo_in_tmp_dir(repo) if !local