Commit 97c49d6
committed
script/ceph-backport: do not assume ref layout for checkout
The local repository may have a different layout from the defaults
for remote repository references. As for myself, I have:
[remote "upstream"]
url = [email protected]:ceph/ceph.git
fetch = +refs/*:refs/remotes/upstream/*
So I have a local mirror of the full ceph.git repsository and upstream branches are
available via `refs/remotes/upstream/heads/<branch>`.
So, fetch the desired branch and use FETCH_HEAD instead. This is not 100% the same
as the merge branch for the wip- branch becomes:
[branch "wip-66572-squid"]
remote = origin
merge = refs/heads/wip-66572-squid
So the remote tracking branch is now the origin. Rebasing to a newer <release> branch
must be done manually:
git rebase upstream/heads/<release>
Signed-off-by: Patrick Donnelly <[email protected]>1 parent cf51417 commit 97c49d6
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
0 commit comments