git @ Cat's Eye Technologies shelf / b64f327
Merge branch 'develop-0.8' of https://git.catseye.tc/shelf into develop-0.8 Chris Pressey 8 months ago
2 changed file(s) with 9 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
136136 name and, if a corresponding directory exists in the current directory,
137137 update the repository in that corresponding directory using `git pull`,
138138 otherwise attempt to `git clone` the repository to that corresponding
139 directory in the current directory. In both cases a `git fetch` will
140 be executed as well.
139 directory in the current directory. In both cases a `git fetch --tags`
140 will be executed as well.
141141
142142 The current directory is assumed to be on `SHELF_PATH`.
143143
205205
206206 * `shelf_populate_from_git` now pulls using the specified origin
207207 (rather than the one set in the repository), and executes a
208 `git fetch` after cloning (and/or before pulling.)
208 `git fetch --tags` after cloning (and/or before pulling.)
209 * `shelf_mirror_from_git` was ignoring the supplied prefix when
210 updating repositories that already exist in the shelf. It now
211 executes `git remote set-url origin` with an URL constructed
212 from the supplied prefix before updating these repositories.
209213
210214 #### 0.7
211215
438438 fi
439439
440440 if [ -d $dest ]; then
441 (echo -n "[FETCH $url]: " && cd $dest && git fetch $url)
441 (echo -n "[FETCH $url]: " && cd $dest && git fetch --tags $url)
442442 if [ $? -ne 0 ]; then
443443 failures="$failures $dest"
444444 fi
480480 if [ ! -d $dest ]; then
481481 git clone --mirror $url $dest
482482 fi
483 (echo -n "$dest: " && cd $dest && git remote update)
483 (echo -n "$dest: " && cd $dest && git remote set-url origin $url && git remote update)
484484 done
485485 }
486486