lib/pdk/util/git.rb in pdk-1.11.1 vs lib/pdk/util/git.rb in pdk-1.12.0

- old
+ new

@@ -79,11 +79,11 @@ rev_parse[:exit_code].zero? && rev_parse[:stdout].strip == 'true' end end def self.work_dir_clean?(repo) - raise PDK::CLI::ExitWithError, _('Unable to locate git work dir "%{workdir}') % { workdir: repo } unless File.directory?(repo) - raise PDK::CLI::ExitWithError, _('Unable to locate git dir "%{gitdir}') % { gitdir: repo } unless File.directory?(File.join(repo, '.git')) + raise PDK::CLI::ExitWithError, _('Unable to locate git work dir "%{workdir}"') % { workdir: repo } unless File.directory?(repo) + raise PDK::CLI::ExitWithError, _('Unable to locate git dir "%{gitdir}"') % { gitdir: repo } unless File.directory?(File.join(repo, '.git')) git('--work-tree', repo, '--git-dir', File.join(repo, '.git'), 'status', '--untracked-files=no', '--porcelain', repo)[:stdout].empty? end def self.ls_remote(repo, ref)