lib/jekyll-admin/server/version.rb
# Execute an arbitrary git command.
Execute an arbitrary git command.
Execute an arbitrary git command .
def git_cmd(git_command_args)
        cmd = "git --git-dir='#{src_dir}/.git' --work-tree='#{src_dir}' #{git_command_args} 2>&1"
        Jekyll.logger.warn "             Git I: " + cmd
        result = `#{cmd}`
        Jekyll.logger.warn "             Git O: " + result.sub("\n", ' ')[0,150]
        result.split("\n")
      end
def git_cmd ( git_command_args ) cmd = "git --git-dir='#{src_dir}/.git' --work-tree='#{src_dir}' #{git_command_args} 2>&1" Jekyll . logger . warn "             Git I: " + cmd result = ` #{ cmd } ` Jekyll . logger . warn "             Git O: " + result . sub ( "\n" , ' ' ) [ 0 , 150 ] result . split ( "\n" ) end
Execute an arbitrary git command.
Execute an arbitrary git command .
git_command_args
<not_specific>