aboutsummaryrefslogtreecommitdiff
path: root/gitstatus/src
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-30 00:05:36 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-30 00:05:36 +0300
commit422b7a94b9f5fb4c60d8e73614020ed888706c8c (patch)
treed1dcf47f896208f93013aca6545f423845a36f18 /gitstatus/src
parent05ff6625680d1fa4298bda18eb9156a0b50456a1 (diff)
parentcb59280c407e60d6e993c24eaddb0feb5dd373a5 (diff)
Merge commit 'cb59280c407e60d6e993c24eaddb0feb5dd373a5'
Diffstat (limited to 'gitstatus/src')
-rw-r--r--gitstatus/src/gitstatus.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitstatus/src/gitstatus.cc b/gitstatus/src/gitstatus.cc
index 35351b85..5560ca8d 100644
--- a/gitstatus/src/gitstatus.cc
+++ b/gitstatus/src/gitstatus.cc
@@ -118,7 +118,7 @@ void ProcessRequest(const Options& opts, RepoCache& cache, Request req) {
resp.Print(stats.num_untracked);
if (remote && remote->ref) {
- const char* ref = git_reference_shorthand(remote->ref);
+ const char* ref = git_reference_name(remote->ref);
// Number of commits we are ahead of upstream. Non-negative integer.
resp.Print(CountRange(repo->repo(), ref + "..HEAD"s));
// Number of commits we are behind upstream. Non-negative integer.
@@ -152,7 +152,7 @@ void ProcessRequest(const Options& opts, RepoCache& cache, Request req) {
resp.Print(push_remote ? push_remote->url : "");
if (push_remote && push_remote->ref) {
- const char* ref = git_reference_shorthand(push_remote->ref);
+ const char* ref = git_reference_name(push_remote->ref);
// Number of commits we are ahead of push remote. Non-negative integer.
resp.Print(CountRange(repo->repo(), ref + "..HEAD"s));
// Number of commits we are behind upstream. Non-negative integer.