diff --git a/CMakeLists.txt b/CMakeLists.txt index 39ad5216..7524d093 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ set(GITTYUP_VERSION string(TIMESTAMP CURR_YEAR "%Y") add_compile_definitions(CURR_YEAR=${CURR_YEAR}) configure_file(${CMAKE_SOURCE_DIR}/LICENSE.md.in ${CMAKE_SOURCE_DIR}/LICENSE.md - @ONLY NEWLINE_STYLE UNIX) + @ONLY NEWLINE_STYLE UNIX) # Write version to file so it can be used also from external, for example in the # github manifest diff --git a/dep/git/CMakeLists.txt b/dep/git/CMakeLists.txt index 742695ae..fefcf1d2 100644 --- a/dep/git/CMakeLists.txt +++ b/dep/git/CMakeLists.txt @@ -4,8 +4,9 @@ if(NOT USE_SYSTEM_GIT) macro(add_helper NAME) set(TARGET git-credential-${NAME}) add_executable(${TARGET} ${PATH}/${NAME}/${TARGET}.c) - set_target_properties(${TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY - $/credential-helpers) + set_target_properties( + ${TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY + $/credential-helpers) if(${ARGC} GREATER 1) target_link_libraries(${TARGET} ${ARGV1}) diff --git a/src/cred/CredentialHelper.cpp b/src/cred/CredentialHelper.cpp index 1e5e10cd..9d25d989 100644 --- a/src/cred/CredentialHelper.cpp +++ b/src/cred/CredentialHelper.cpp @@ -44,8 +44,7 @@ CredentialHelper *CredentialHelper::instance() { auto path = QString::fromLocal8Bit(qgetenv("HOME") + "/.git-credentials"); instance = new Store(path); - } - else { + } else { instance = new GitCredential(helperName); } } diff --git a/src/cred/GitCredential.cpp b/src/cred/GitCredential.cpp index a99622d1..cbd01d17 100644 --- a/src/cred/GitCredential.cpp +++ b/src/cred/GitCredential.cpp @@ -98,7 +98,8 @@ QString GitCredential::command() const { appDir.cd("credential-helpers"); // Prefer credential helpers directly installed into Gittyup's app dir - QString candidate = QStandardPaths::findExecutable(name, QStringList(appDir.path())); + QString candidate = + QStandardPaths::findExecutable(name, QStringList(appDir.path())); if (!candidate.isEmpty()) { return candidate; }