EGit in Zend Studio for Eclipse: Tripple Slash Bug bei HTTP Push ("http:///")

Bereits beim Einrichten meiner Git Repositories in Zend Studio for Eclipse hatte ich Probleme mit der Angabe des Protokolls (for Remote Repositories).

Immer wenn ich als Protokoll "http" wählte (ggf. existiert der Fehler auch für andere Protokolle), fügte EGit einen Slash zu viel ein, sodass nicht "http://...", sondern "http:///..." verwendet wurde.
Auf wundersame Weise und durch etwas Klickerei konnte ich das Problem jedoch in der Einrichtung beheben.

Nun wollte ich heute meine Ergebnisse zurück ins Master-Repository pushen, doch erhielt dabei immer einen Verbindungsfehler. (Konkret ging es hier um ein neues Drupal Modul in der Drupal Sandbox.)

Nach Klick auf "Configure" stellte ich fest, dass der Pfad nicht korrekt war. Ich passte ihn also an und die erste Zeile zeigte auch den korrekten Pfad mit "http://...".

Also speicherte ich und versuchte es erneut. Jetzt passierte es: Der Pfad sprang jedes mal nach dem Speichern meiner Konfigurationsanpassung wieder auf den tripple-slash!

Egal wie ich es versuchte, das Problem ließ sich nicht ausräumen.

Nun also meine Lösung:
Um das Problem zu beheben öffnete ich im Dateisystem den Projektordner. Darin den Ordner .git mit den Repository-Daten. Hier findet sich eine "config"-Datei. Diese enthält unter anderem den Pfad zum Master repository. Lustigerweise stand dieser korrekt auf "http://...". Nach einigen Versuchen entfernte ich das Protokoll einfach komplett und siehe da!
Der Push in Zend Studio für Eclipse funktionierte endlich einwandfrei.

Ich vermute fast, dass EGit nun eine art "auto exploration" vornimmt und das Protokoll selbst ermittelt. Auf jeden Fall ist das Problem nun behoben.

Hier noch einmal die Schritte im Detail:

Problem:
http-Protokoll führt zu drei slashes (http:///) vor dem Git Repository Pfad

Lösung:

  1. Projektverzeichnis im Dateisystem öffnen
  2. .git Ordner öffnen
  3. config-Datei bearbeiten
  4. Protokoll vor der Repository URL entfernen
  5. Speichern
  6. In Zend Studio for Eclipse ganz normal arbeiten!

Viel Erfolg mit der Lösung, die ggf. auch für das normale Eclipse zutrifft.

Wenn ihr wisst, wie es zu dem Fehler kommt, ob dieser behoben wird oder ähnliches, lasst es mich wissen! Ebenfalls freue ich mich auch über Kommentare, wenn euch dieser Fix geholfen hat.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • You can enable syntax highlighting of source code with the following tags: <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Textual smileys will be replaced with graphical ones.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.