# خطأ Git عند إعادة بناء التطبيق - لم يتم العثور على المرجع البعيد refs/heads/tests-passed

**URL:** <https://meta.discourse.org/t/git-error-when-rebuilding-app-couldn-t-find-remote-ref-refs-heads-tests-passed/336911>\
**Category:** Self-hosting\
**Created:** [19 نوفمبر 2024، 8:54ص UTC](https://meta.discourse.org/t/git-error-when-rebuilding-app-couldn-t-find-remote-ref-refs-heads-tests-passed/336911 "2024-11-19T08:54:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)\
**Post date:** [19 نوفمبر 2024، 8:54ص UTC](https://meta.discourse.org/t/git-error-when-rebuilding-app-couldn-t-find-remote-ref-refs-heads-tests-passed/336911/1 "2024-11-19T08:54:29Z")

</div>

مرحباً يا رفاق،

أواجه هذا الخطأ عند إعادة بناء التطبيق

```plaintext
> Pups::ExecError: cd /var/www/discourse & sudo -H -E -u discourse bash -c '
> set -o errexit
> if [$(git rev-parse --is-shallow-repository) == "true"]; then
> git remote set-branches --add origin main
> git remote set-branches origin tests-passed
> git fetch --depth 1 origin tests-passed
> else
> git fetch --tags --prune-tags --prune --force origin
> fi
> ' failed with return #<Process::Status: pid 145 exit 128>

```

عندما أقوم بتنفيذ هذا:

```plaintext
> git fetch --tags --prune-tags --prune --force origin

```

أحصل على الخطأ

```plaintext
> fatal: couldn't find remote ref refs/heads/tests-passed

```

هل أفعل شيئًا خاطئًا؟

شكرًا وتحياتي!

ملاحظة: نسيت أن أذكر. أول عملية سحب نجحت، فقط مهمة إعادة بناء التطبيق تفشل مع هذا. لذا لا توجد مشكلة في Git من جانبي، أعتقد (آمل 🙂 )

---

_[View the full topic](https://meta.discourse.org/t/git-error-when-rebuilding-app-couldn-t-find-remote-ref-refs-heads-tests-passed/336911)._
