Browse code

forgot to clone embedded when updating

Nat! authored on 07-06-2016 13:36:55
Showing 1 changed files
... ...
@@ -1161,6 +1161,7 @@ update_embedded_repositories()
1161 1161
    local name
1162 1162
    local url
1163 1163
    local branch
1164
+   local scm
1164 1165
 
1165 1166
    MULLE_BOOTSTRAP_SETTINGS_NO_AUTO="YES"
1166 1167
    export MULLE_BOOTSTRAP_SETTINGS_NO_AUTO
... ...
@@ -1187,7 +1188,14 @@ update_embedded_repositories()
1187 1188
 
1188 1189
          create_file_if_missing "${CLONESFETCH_SUBDIR}/.fetch_update_started"
1189 1190
 
1191
+         if [ -e "${dstdir}" ]
1192
+         then
1190 1193
             update "${name}" "${url}" "${dstdir}" "${branch}" "${tag}"
1194
+         else
1195
+            scm="`scm_from_clone "${clone}"`"
1196
+            clone_repository  "${name}" "${url}" "${branch}" "${scm}"
1197
+         fi
1198
+
1191 1199
 
1192 1200
          remove_file_if_present "${CLONESFETCH_SUBDIR}/.fetch_update_started"
1193 1201
       done