ansible: Correct git mirror update script initial clone
authorKienan Stewart <kstewart@efficios.com>
Tue, 29 Aug 2023 13:35:13 +0000 (09:35 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 29 Aug 2023 13:35:13 +0000 (09:35 -0400)
commitc16adb7d1b18943602f5253bd57779ce76a1fc3c
treeb043491f888bd84d7f0e077533ad3ce2b7e53ede
parent7b15f9fa48cf3ca03cd9b2286a2100dad966ee34
ansible: Correct git mirror update script initial clone

When '--mirror' isn't set, the remote references aren't always
pulled. To fix an existing repository that is just a bare clone, the
following commands can be run:

```
git remote rm origin
git remote add --mirror=fetch origin URL
git fetch --all
```

Change-Id: I9b713fe2dae523ba70a387adef23e87f98bb059a
automation/ansible/roles/gitmirror/files/update.sh
This page took 0.023958 seconds and 4 git commands to generate.