@@ -58,33 +58,33 @@ function test_push() {
5858
5959 # Push multiple branches
6060 setup_cache " org/repo:heads/change:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
61- " org/repo:heads/nochange:a5984bb887dd2fcdc2892cd906d6f004844d1142"
61+ " org/repo:heads/nochange:a5984bb887dd2fcdc2892cd906d6f004844d1142"
6262 setup_dest " org/repo:heads/change:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
63- " org/repo:heads/nochange:a5984bb887dd2fcdc2892cd906d6f004844d1142"
63+ " org/repo:heads/nochange:a5984bb887dd2fcdc2892cd906d6f004844d1142"
6464
6565 push " pushing multiple branches"
6666 assert_dest_sha " org/repo" " heads/change" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org/repo:heads/change to new commit"
6767 assert_dest_sha " org/repo" " heads/nochange" " a5984bb887dd2fcdc2892cd906d6f004844d1142" " leaving org/repo:heads/nochange at existing commit"
6868
6969 # Pushing multiple branches and tags
7070 setup_cache " org/repo:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
71- " org/repo:tags/v1:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
71+ " org/repo:tags/v1:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
7272 setup_dest " org/repo:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
73- " org/repo:tags/v1:a5984bb887dd2fcdc2892cd906d6f004844d1142"
73+ " org/repo:tags/v1:a5984bb887dd2fcdc2892cd906d6f004844d1142"
7474
7575 push " pushing multiple branches and tags"
7676 assert_dest_sha " org/repo" " heads/main" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org/repo:heads/main to new commit"
7777 assert_dest_sha " org/repo" " tags/v1" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org/repo:tags/v1 to new commit"
7878
7979 # Pushing multiple repositories
8080 setup_cache " org1/repo1:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
81- " org1/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
82- " org1/repo2:tags/v1:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
83- " org2/repo1:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
81+ " org1/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
82+ " org1/repo2:tags/v1:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
83+ " org2/repo1:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
8484 setup_dest " org1/repo1:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
85- " org1/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
86- " org1/repo2:tags/v1:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
87- " org2/repo1:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
85+ " org1/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
86+ " org1/repo2:tags/v1:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
87+ " org2/repo1:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
8888
8989 push " pushing multiple repositories"
9090 assert_dest_sha " org1/repo1" " heads/main" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org1/repo1:heads/main to new commit"
@@ -94,9 +94,9 @@ function test_push() {
9494
9595 # Honor --repo-name flag, ignore other cache entries
9696 setup_cache " org/repo1:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
97- " org/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
97+ " org/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
9898 setup_dest " org/repo1:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
99- " org/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
99+ " org/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
100100
101101 push2args --repo-name " org/repo1" " pushing only one of the repos in the cache"
102102 assert_dest_sha " org/repo1" " heads/main" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org/repo1 passed in repo flag"
@@ -191,9 +191,9 @@ function test_sync() {
191191
192192 # Honor --repo-name flag, ignore other cache entries
193193 setup_cache " org/repo1:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52" \
194- " org/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
194+ " org/repo2:heads/main:e9009d51dd6da2c363d1d14779c53dd27fcb0c52"
195195 setup_dest " org/repo1:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142" \
196- " org/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
196+ " org/repo2:heads/main:a5984bb887dd2fcdc2892cd906d6f004844d1142"
197197
198198 sync --repo-name " org/repo1" " syncing only one of the repos in the cache"
199199 assert_dest_sha " org/repo1" " heads/main" " e9009d51dd6da2c363d1d14779c53dd27fcb0c52" " updating org/repo1 passed in repo flag"
@@ -208,15 +208,15 @@ function before_suite() {
208208 rm -rf test/tmp
209209 mkdir -p test/tmp/dest
210210 mkdir -p test/tmp/src
211- ) > /dev/null
211+ ) > /dev/null
212212
213213 git daemon \
214214 --reuseaddr \
215215 --verbose \
216216 --export-all \
217217 --enable=receive-pack \
218218 --port=" $SRC_GIT_DAEMON_PORT " \
219- --base-path=test/tmp/src & > $SRC_GIT_DAEMON_OUTPUT &
219+ --base-path=test/tmp/src & > $SRC_GIT_DAEMON_OUTPUT &
220220 SRC_GIT_DAEMON_PID=$!
221221
222222 git daemon \
@@ -225,12 +225,12 @@ function before_suite() {
225225 --export-all \
226226 --enable=receive-pack \
227227 --port=" $DEST_GIT_DAEMON_PORT " \
228- --base-path=test/tmp/dest & > $DEST_GIT_DAEMON_OUTPUT &
228+ --base-path=test/tmp/dest & > $DEST_GIT_DAEMON_OUTPUT &
229229 DEST_GIT_DAEMON_PID=$!
230230
231231 go run test/github.go \
232232 -p " $DEST_API_PORT " \
233- -git-daemon-url " git://localhost:$DEST_GIT_DAEMON_PORT /" & > $DEST_API_OUTPUT &
233+ -git-daemon-url " git://localhost:$DEST_GIT_DAEMON_PORT /" & > $DEST_API_OUTPUT &
234234 DEST_API_PID=$!
235235
236236 script/build
@@ -257,7 +257,7 @@ function setup_src() {
257257
258258 local org=$( echo $nwo | cut -d' /' -f1)
259259 mkdir -p test/tmp/src/$org && cp -R test/fixtures/repo.git test/tmp/src/$nwo
260- echo " $sha " > " test/tmp/src/$nwo /refs/$refname "
260+ echo " $sha " > " test/tmp/src/$nwo /refs/$refname "
261261 done
262262}
263263
@@ -270,7 +270,7 @@ function setup_cache() {
270270 local refname=$( echo $r | cut -d' :' -f2)
271271 local sha=$( echo $r | cut -d' :' -f3)
272272 mkdir -p test/tmp/cache/$nwo && cp -R test/fixtures/repo.git test/tmp/cache/$nwo /.git
273- echo " $sha " > " test/tmp/cache/$nwo /.git/refs/$refname "
273+ echo " $sha " > " test/tmp/cache/$nwo /.git/refs/$refname "
274274 done
275275}
276276
@@ -283,13 +283,13 @@ function setup_dest() {
283283 local refname=$( echo $r | cut -d' :' -f2)
284284 local sha=$( echo $r | cut -d' :' -f3)
285285 mkdir -p test/tmp/dest/$nwo && cp -R test/fixtures/repo.git test/tmp/dest/$nwo /.git
286- echo " $sha " > " test/tmp/dest/$nwo /.git/refs/$refname "
286+ echo " $sha " > " test/tmp/dest/$nwo /.git/refs/$refname "
287287 done
288288}
289289
290290function version() {
291291 bin/actions-sync version \
292- & > $OUTPUT ||
292+ & > $OUTPUT ||
293293 fail $1
294294}
295295
@@ -298,7 +298,7 @@ function pull() {
298298 --cache-dir " test/tmp/cache" \
299299 --source-url " git://localhost:$SRC_GIT_DAEMON_PORT " \
300300 " $1 " " $2 " \
301- & > $OUTPUT ||
301+ & > $OUTPUT ||
302302 fail $3
303303}
304304
@@ -308,7 +308,7 @@ function push() {
308308 --disable-push-git-auth \
309309 --destination-token " token" \
310310 --destination-url " http://localhost:$DEST_API_PORT " \
311- & > $OUTPUT ||
311+ & > $OUTPUT ||
312312 fail " $1 "
313313}
314314
@@ -319,7 +319,7 @@ function push2args() {
319319 --destination-token " token" \
320320 --destination-url " http://localhost:$DEST_API_PORT " \
321321 " $1 " " $2 " \
322- & > $OUTPUT ||
322+ & > $OUTPUT ||
323323 fail $3
324324}
325325
@@ -330,7 +330,7 @@ function push_impersonation() {
330330 --destination-token " token" \
331331 --destination-url " http://localhost:$DEST_API_PORT " \
332332 --actions-admin-user $1 \
333- & > $OUTPUT ||
333+ & > $OUTPUT ||
334334 fail " $2 "
335335}
336336
@@ -342,7 +342,7 @@ function sync() {
342342 --destination-token " token" \
343343 --destination-url " http://localhost:$DEST_API_PORT " \
344344 " $1 " " $2 " \
345- & > $OUTPUT ||
345+ & > $OUTPUT ||
346346 fail $3
347347}
348348
0 commit comments