Skip to content

Commit

Permalink
Fix git directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ovkulkarni committed Sep 4, 2018
1 parent 76769ae commit 408d7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intranet/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def debug_toolbar_callback(request):


def get_current_commit_short_hash(workdir):
cmd = ["git", "--work-tree", workdir, "rev-parse", "--short", "HEAD"]
cmd = ["git", "-C", workdir, "rev-parse", "--short", "HEAD"]
return subprocess.check_output(cmd, universal_newlines=True).strip()


def get_current_commit_long_hash(workdir):
cmd = ["git", "--work-tree", workdir, "rev-parse", "HEAD"]
cmd = ["git", "-C", workdir, "rev-parse", "HEAD"]
return subprocess.check_output(cmd, universal_newlines=True).strip()


Expand Down

0 comments on commit 408d7aa

Please sign in to comment.