abdelwahabram / abdelwahabram/shed

push to github request implementation issue

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### expected behavior:
as explained in git transfer protocol documentation here [GIT docs](https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols) see the uploading data: HTTPS section

### actual behavior:
when tried to push the pack file to a test git repo with ssh protocol or https via curl got no response and the remote repo wasn't updated

here's the process in detail:
1. created a GET request to git-receive-pack process : 'curl -u abdelwahabram -X GET https://github.com/abdelwahabram/test.git/info/refs?service=git-receive-pack --output hh'
2. the received output: '001f# service=git-receive-pack
000001270000000000000000000000000000000000000000 capabilities^{}^@report-status report-status-v2 delete-refs side-band-64k ofs-delta atomic object-for>
0000'
3. created a POST request to git-receive-pack with the packfiles and send-pack response:
the request: 'curl -u abdelwahabram --data @git-send-pack -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-9fd95ae4c81c985d0e98e19a8251cf10a849c250.pack -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-c602ae7fbeb19667f1c967151e2dd043f6e498fe.pack -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-9fd95ae4c81c985d0e98e19a8251cf10a849c250.idx -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-9fd95ae4c81c985d0e98e19a8251cf10a849c250.rev -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-9fd95ae4c81c985d0e98e19a8251cf10a849c250.mtimes -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-c602ae7fbeb19667f1c967151e2dd043f6e498fe.idx -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/pack/pack-c602ae7fbeb19667f1c967151e2dd043f6e498fe.rev -X POST https://github.com/abdelwahabram/test.git/git-receive-pack --data @.git/objects/info/packs -X POST https://github.com/abdelwahabram/test.git/git-receive-pack'

git-send-pack response : '00650000000000000000000000000000000000000000 8750c23e117de605af5f82c7e040a0f53fa44409 refs/heads/main'
4. received no reponse from the github remote server

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.