|
73 | 73 | $ git commit -m "add file3" 1> /dev/null |
74 | 74 | $ git push -o author=josh@example.com origin master:refs/stack/for/master |
75 | 75 | remote: josh-proxy: pre-receive hook |
76 | | - remote: upstream: response status: 500 Internal Server Error |
| 76 | + remote: upstream: response status: 200 OK |
77 | 77 | remote: upstream: response body: |
78 | 78 | remote: |
79 | | - remote: rejecting to push a3065162ecee0fecc977ec04a275e10b5e15a39c without id |
80 | | - remote: error: hook declined to update refs/stack/for/master |
| 79 | + remote: Everything up-to-date |
| 80 | + remote: Everything up-to-date |
| 81 | + remote: To http://localhost:8001/real_repo.git |
| 82 | + remote: 2bb9471..a306516 master -> @heads/master/josh@example.com |
81 | 83 | To http://localhost:8002/real_repo.git:/sub1.git |
82 | | - ! [remote rejected] master -> refs/stack/for/master (hook declined) |
83 | | - error: failed to push some refs to 'http://localhost:8002/real_repo.git:/sub1.git' |
84 | | - [1] |
| 84 | + * [new reference] master -> refs/stack/for/master |
85 | 85 |
|
86 | 86 | $ curl -s http://localhost:8002/flush |
87 | 87 | Flushed credential cache |
|
94 | 94 | * [new branch] @heads/master/josh@example.com -> origin/@heads/master/josh@example.com |
95 | 95 | * [new branch] @heads/other_branch/josh@example.com -> origin/@heads/other_branch/josh@example.com |
96 | 96 | $ git log --decorate --graph --pretty="%s %d" |
97 | | - * add file3 (HEAD -> master) |
98 | | - * Change-Id: foo7 (origin/@heads/other_branch/josh@example.com, origin/@heads/master/josh@example.com, origin/@changes/other_branch/josh@example.com/foo7, origin/@changes/master/josh@example.com/foo7) |
| 97 | + * add file3 (HEAD -> master, origin/@heads/master/josh@example.com) |
| 98 | + * Change-Id: foo7 (origin/@heads/other_branch/josh@example.com, origin/@changes/other_branch/josh@example.com/foo7, origin/@changes/master/josh@example.com/foo7) |
99 | 99 | * Change-Id: 1234 (origin/@changes/other_branch/josh@example.com/1234, origin/@changes/master/josh@example.com/1234) |
100 | 100 | * add file1 (origin/master, origin/HEAD) |
101 | 101 |
|
@@ -151,15 +151,21 @@ Make sure all temporary namespace got removed |
151 | 151 | | | | `-- 77ff51363c9825cc2a221fc0ba5a883a1a2c72 |
152 | 152 | | | |-- 6b |
153 | 153 | | | | `-- 46faacade805991bcaea19382c9d941828ce80 |
| 154 | + | | |-- 88 |
| 155 | + | | | `-- 2b84c5d3241087bc41982a744b72b7a174c49e |
154 | 156 | | | |-- a0 |
155 | 157 | | | | `-- 24003ee1acc6bf70318a46e7b6df651b9dc246 |
| 158 | + | | |-- a3 |
| 159 | + | | | `-- 065162ecee0fecc977ec04a275e10b5e15a39c |
156 | 160 | | | |-- b2 |
157 | 161 | | | | `-- ea883bc5df63565960a38cad7a57f73ac66eaa |
158 | 162 | | | |-- ba |
159 | 163 | | | | |-- 7e17233d9f79c96cb694959eb065302acd96a6 |
160 | 164 | | | | `-- c8af20b53d712874a32944874c66a21afa91f9 |
161 | 165 | | | |-- bb |
162 | 166 | | | | `-- 282e9cdc1b972fffd08fd21eead43bc0c83cb8 |
| 167 | + | | |-- be |
| 168 | + | | | `-- 33ab805ad4ef7ddda5b51e4a78ec0fac6b699a |
163 | 169 | | | |-- c6 |
164 | 170 | | | | `-- 27a2e3a6bfbb7307f522ad94fdfc8c20b92967 |
165 | 171 | | | |-- c8 |
@@ -233,7 +239,7 @@ Make sure all temporary namespace got removed |
233 | 239 | |-- namespaces |
234 | 240 | `-- tags |
235 | 241 |
|
236 | | - 58 directories, 44 files |
| 242 | + 61 directories, 47 files |
237 | 243 |
|
238 | 244 | $ cat ${TESTTMP}/josh-proxy.out |
239 | 245 | $ cat ${TESTTMP}/josh-proxy.out | grep REPO_UPDATE |
|
0 commit comments