Skip to content

Commit

Permalink
Append '-dirty' when showing modified repos.
Browse files Browse the repository at this point in the history
  • Loading branch information
psyhtest committed Sep 14, 2018
1 parent 0e953e2 commit 712bd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ck/repo/module/repo/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2426,8 +2426,8 @@ def show(i):
if r['return']==0 and r['return_code']==0:
branch=r['stdout'].strip()

# Get current checkout
r=ck.run_and_get_stdout({'cmd':['git','rev-parse','--short','HEAD']})
# Get current checkout (append '-dirty' on dirty working tree)
r=ck.run_and_get_stdout({'cmd':['git','describe','--match=NeVeRmAtCh','--always','--abbrev','--dirty']})
if r['return']==0 and r['return_code']==0:
checkout=r['stdout'].strip()

Expand Down

0 comments on commit 712bd2a

Please sign in to comment.