mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
15 lines
432 B
Python
15 lines
432 B
Python
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import subprocess
|
|
|
|
import mopy.paths
|
|
|
|
class Version(object):
|
|
"""Computes the version (git committish) of the mojo repo"""
|
|
|
|
def __init__(self):
|
|
self.version = subprocess.check_output(["git", "rev-parse", "HEAD"],
|
|
cwd=mopy.paths.Paths().src_root).strip()
|