    # File lib/chef/provider/git.rb, line 93
          def find_current_revision
            Chef::Log.debug("#{@new_resource} finding current git revision")
            if ::File.exist?(::File.join(cwd, ".git"))
              # 128 is returned when we're not in a git repo. this is fine
              result = shell_out!('git rev-parse HEAD', :cwd => cwd, :returns => [0,128]).stdout.strip
            end
            sha_hash?(result) ? result : nil
          end