<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def git_show_file(path, ref):
 """ Return the contents of a file at a given tag """

    root = get_root()
    command = 'git show {}:{}'.format(ref, path)

    with chdir(root):
        return run_command(command, capture=True).stdout