blob: cc51d42cd274f8eae42ad0e71d50343adfc3d975 [file] [log] [blame]
Eric Boren522efc42019-04-16 15:15:21 -04001#!/usr/bin/env python
2#
3# Copyright 2019 Google Inc.
4#
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8
9import subprocess
10import sys
11
12
13GIT = 'git.bat' if sys.platform == 'win32' else 'git'
14
15
16def git(*args):
17 '''Run the given Git command, return the output.'''
18 return subprocess.check_output([GIT]+list(args))