mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: %(refname:short)
sometimes return a wrong tag name that contains the prefix tags/
This commit is contained in:
parent
869ba7a471
commit
8e60ec619e
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
Context = repo;
|
Context = repo;
|
||||||
WorkingDirectory = repo;
|
WorkingDirectory = repo;
|
||||||
Args = "for-each-ref --sort=-creatordate --format=\"$%(refname:short)$%(objectname)$%(*objectname)\" refs/tags";
|
Args = "tag -l --sort=-creatordate --format=\"$%(refname)$%(objectname)$%(*objectname)\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Models.Tag> Result()
|
public List<Models.Tag> Result()
|
||||||
|
@ -25,7 +25,7 @@ namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
_loaded.Add(new Models.Tag()
|
_loaded.Add(new Models.Tag()
|
||||||
{
|
{
|
||||||
Name = subs[0],
|
Name = subs[0].Substring(10),
|
||||||
SHA = subs[1],
|
SHA = subs[1],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
_loaded.Add(new Models.Tag()
|
_loaded.Add(new Models.Tag()
|
||||||
{
|
{
|
||||||
Name = subs[0],
|
Name = subs[0].Substring(10),
|
||||||
SHA = subs[2],
|
SHA = subs[2],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue