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

yay fails when clone.defaultRemoteName is not origin in user's gitconfig #2387

Open
abextm opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@abextm
Copy link

abextm commented Mar 7, 2024

Affected Version

$ yay -V
yay v12.3.1 - libalpm v13.0.2

Describe the bug

If clone.defaultRemoteName in the user's global ~/.gitconfig is not set to origin, makepkg fails. makepkg explicitly requires the remote's name to be origin and explicitly sets --origin origin when cloning.

Reproduction Steps

  1. git config --global clone.defaultRemoteName upstream
  2. Clean install any package from git -- yay -S yay-git
  3. makepkg fails with ==> ERROR: /home/abex/.cache/yay/yay-git/yay is not a clone of https://github.com/Jguer/yay.git

Expected behavior

Install succeeds

Output

$ yay -S yay-git             
AUR Explicit (1): yay-git-12.3.1.r0.g03e89d6-1
:: (1/1) Downloaded PKGBUILD: yay-git
  1 yay-git                                  (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 yay-git                                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: yay-git 12.3.1.r0.g03e89d6-1 (Wed 06 Mar 2024 11:32:14 PM MST)
==> Retrieving sources...
  -> Cloning yay git repo...
Cloning into bare repository '/home/abex/.cache/yay/yay-git/yay'...
remote: Enumerating objects: 15473, done.
remote: Counting objects: 100% (2418/2418), done.
remote: Compressing objects: 100% (925/925), done.
remote: Total 15473 (delta 1630), reused 2209 (delta 1465), pack-reused 13055
Receiving objects: 100% (15473/15473), 8.99 MiB | 17.87 MiB/s, done.
Resolving deltas: 100% (9932/9932), done.
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    yay ... Skipped
:: (1/1) Parsing SRCINFO: yay-git
==> Making package: yay-git 12.3.1.r0.g03e89d6-1 (Wed 06 Mar 2024 11:32:18 PM MST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: /home/abex/.cache/yay/yay-git/yay is not a clone of https://github.com/Jguer/yay.git
    Aborting...
 -> error making: yay-git-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
yay-git - exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant