Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with git commit signing enabled #370

Open
madscientist16 opened this issue Nov 12, 2024 · 1 comment
Open

Not working with git commit signing enabled #370

madscientist16 opened this issue Nov 12, 2024 · 1 comment

Comments

@madscientist16
Copy link

Summary

I'm using fedora installed inside termux using proot-distro. submit50 was installed using pipx. submit50 gets stuck at a certain point when I have git commit signing enabled.

Logs

Connecting...
(DEBUG) 0f9e8cd120bf91e44fa92e9c19d694a21e6fccce        refs/heads/2017/x
bb90397adcc1f5cd98d2c340e1e3d72fe765c83d        refs/heads/2018/ap
601e6cf1b7feb4ccac7ff50564aa20a04d5658b5        refs/heads/2018/fall
6a9d97c80a01c3603b2bfa8467f287129f4a2df1        refs/heads/2018/spring
7b83decd08252ce0d9b85fedc2281d0e01fea74b        refs/heads/2018/x
1fdf920d7e1f45564b55575670c587afcc79f2aa        refs/heads/2019/ap
6fecf49887992717910d56bbf8438b065f38a8f5        refs/heads/2019/fall
d2bad69a5e842cd34a179e6b6e36b5f3de5027ac        refs/heads/2019/x
ed8862c059809deb7d3219c72418d79ae5361689        refs/heads/2019/yale
fb268fdb02e5a7b825c0b7861204eb25bdda9d47        refs/heads/2020/fall
9b0123ca25fa4e9ebf39667f16566db44ad5c205        refs/heads/2020/spring
da3ed7d86836d15c8c08a5ee345c83c3e70775d2        refs/heads/2020/summer
fbf699155e3283e743b5ec50b833d014833edd83        refs/heads/2020/x
67feb69428cb148b8897259700c5c74564f7fd28        refs/heads/2020/yale/summer
d6035425669bb90719eee3a0af1c5e8119691c78        refs/heads/2021/fall
024eb96e4f2d23e32bececebae0a69e43dcc4e33        refs/heads/2021/spring
189ae3cdcb428dc780952c8dcf6e46f2bfcf8aab        refs/heads/2021/summer
(DEBUG) 35aff11c7db1007300b5397a8757256e87d938c3        refs/heads/2021/x
6a49a147eb973bfe1cdb39495a95acf7508a0545        refs/heads/2022/fall
ee90a5165a02bbae3f0aa2935c24347b26e329f7        refs/heads/2022/python
0c7681e0db6adc856ebf6b76abc08926d5d13aca        refs/heads/2022/spring
a6e7c8c3b521ada79ac5b10d94b119a892539cf8        refs/heads/2022/summer
d5d73920067c0569a8006bbff646dfef09ca4e86        refs/heads/2022/x
a221b70f7385287d0a4f6acbe814f86d5b4ff853        refs/heads/2023/fall
e5b0bab122efacf1923ffe06a372ef617d9ca370        refs/heads/2023/spring
14fa0f0307857971ba10df542acae057cc64ba36        refs/heads/2023/sql
7187ec8dfe0d3138638ba61a671eeba15b3b7bc4        refs/heads/2023/summer
8c39c9119038393360bab00a92a8b60be04702b0        refs/heads/2023/x
5657ae981138fc3ac2d582b029c09cb7338dec3b        refs/heads/2024/fall
134afbe0cf4681baeb963be84821556b9820b231        refs/heads/2024/r
12d227d9dca593bff4d59b14375917acea895d0c        refs/heads/2024/scratch
dba5507a81fb12f3f238223e1b44069379c75c1a        refs/heads/2024/spring
ee6c2f5a4c16f7b8bb6fd8dbc1a60fdbdd187199        refs/heads/2024/sql
6ad05371429f379ab008a5582724ae79aa8f1379        refs/heads/2024/summer
911efb8c779a2e58ba81c828fb0cc4bae7dc4400        refs/heads/2024/x
a5659134ad26237ac0dd62aaa6247c900756fe95        refs/heads/charlesriverx
10c67d2f8d822241eed63c1eb1bffd6dd839426d        refs/heads/experiment
bff6780da5a5980fbfb5578e20e38f69b1d2c42c        refs/heads/hello
8c03c2106524ebd8308c5695390bf40387b3fbbf        refs/heads/tests-plates-patch
Authenticating...
Enter passphrase for SSH key: *****************************************
Verifying...
(INFO) git clone --bare --single-branch ssh://[email protected]:443/me50/madscientist16 .git --branch cs50/problems/2024/x/sort
(DEBUG) Cloning into bare repository '.git'...
(DEBUG) Enter passphrase for key '/root/.ssh/id_ed25519':
(DEBUG) remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9 (delta 2), reused 2 (delta 1), pack-reused 5 (from 1)
(DEBUG) Receiving objects:  11% (1/9)
(DEBUG) Receiving objects:  22% (2/9)
(DEBUG) Receiving objects:  33% (3/9)
(DEBUG) Receiving objects:  44% (4/9)
(DEBUG) Receiving objects:  55% (5/9)
(DEBUG) Receiving objects:  66% (6/9)
(DEBUG) Receiving objects:  77% (7/9)
(DEBUG) Receiving objects:  88% (8/9)
(DEBUG) Receiving objects: 100% (9/9)
(DEBUG) Receiving objects: 100% (9/9), done.
(DEBUG) Resolving deltas:   0% (0/2)
(DEBUG) Resolving deltas:  50% (1/2)
(DEBUG) Resolving deltas: 100% (2/2)
(DEBUG) Resolving deltas: 100% (2/2), done.
Preparing...
(INFO) git config --bool core.bare false
(INFO) git config --path core.worktree /tmp/tmp2odwc_0d
(INFO) git checkout --force cs50/problems/2024/x/sort .gitattributes
(DEBUG) error: pathspec '.gitattributes' did not match any file(s) known to git
(DEBUG) git -C /tmp/tmp2odwc_0d checkout --force cs50/problems/2024/x/sort .gitattributes exited with 1
(INFO) git config user.email [email protected]
(INFO) git config user.name madscientist16
(INFO) git symbolic-ref HEAD refs/heads/cs50/problems/2024/x/sort
(INFO) git add -f answers.txt
Files that will be submitted:
./answers.txt
Files that won't be submitted:
./sorted5000.txt
./sorted50000.txt
./random50000.txt
./sort2
./reversed10000.txt
./sort1
./sorted10000.txt
./sort3
./random10000.txt
./reversed50000.txt
./reversed5000.txt
./random5000.txt
Keeping in mind the course's policy on academic honesty, are you sure you want to submit these files (yes/no)? y
Uploading...
(INFO) git commit -m 'automated commit by submit50 ' --allow-empty
(DEBUG) Enter passphrase:

Workarounds

I disabled commit signing for tmp directory.

  • ~/.config/git/config
[includeIf "gitdir:**/tmp/**"]
        path = ~/.config/git/cs50
  • ~/.config/git/cs50
[commit]
        gpgsign = false
@madscientist16
Copy link
Author

madscientist16 commented Nov 12, 2024

Related issue:
cs50/check50#253 (comment)

This issue only happens if I have a password on my ssh key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant