Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
If several remotes are set, arbitrarily use the first one.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 12 Nov 2012 16:39:11 +0000 (17:39 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 12 Nov 2012 16:56:42 +0000 (17:56 +0100)
buildtools/Cmake/CompleteInFiles.cmake

index ac4a9e1..0ece328 100644 (file)
@@ -433,6 +433,7 @@ endif()
 ##
 if(EXISTS ${CMAKE_HOME_DIRECTORY}/.git/ AND NOT WIN32)
   execute_process(COMMAND git remote
+  COMMAND head -n 1
   WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/.git/
   OUTPUT_VARIABLE remote
   RESULT_VARIABLE ret