More git plugin fixes.

UITabWidget minor fix.
This commit is contained in:
Martín Lucas Golini
2024-01-25 23:35:47 -03:00
parent fdd8df9123
commit 80b6a4ea82
9 changed files with 117 additions and 60 deletions

View File

@@ -67,7 +67,7 @@ int Git::git( const std::string& args, const std::string& projectDir, std::strin
p.readAllStdOut( buf );
int retCode;
p.join( &retCode );
Log::debug( "GitPlugin run: %s %s", mGitPath, args );
Log::info( "GitPlugin run: %s %s", mGitPath, args );
return retCode;
}
@@ -86,9 +86,6 @@ bool Git::isGitRepo( const std::string& projectDir ) {
std::string Git::branch( const std::string& projectDir ) {
std::string buf;
if ( EXIT_SUCCESS == git( "symbolic-ref --short HEAD", projectDir, buf ) )
return String::rTrim( buf, '\n' );
if ( EXIT_SUCCESS == git( "rev-parse --abbrev-ref HEAD", projectDir, buf ) )
return String::rTrim( buf, '\n' );