{"thread":{"id":"24148","subject":"is there a trick to run commands on a remote repository","startedAt":"2010-06-18T21:54:08Z","lastAt":"2010-06-18T21:54:08Z","messageCount":1,"participants":["Gelonida"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"143926","messageId":"hvgpu0$rbh$1@dough.gmane.org","threadId":"24148","inReplyTo":null,"subject":"is there a trick to run commands on a remote repository","fromName":"Gelonida","fromEmail":"gelonida@gmail.com","sentAt":"2010-06-18T21:54:08Z","receivedAt":"2010-06-18T21:54:08Z","isPatch":false,"sender":{"key":"gelonida@gmail.com","avatar":null},"body":"Hi,\n\n\nI'd like to get information from a remote git repository.\n\nExample:\ngit branch -v\n\nIf the remote repository were remotehost:/a/long/path/repo.git m then I\ncould type\n\nssh remotehost \"cd a/long/path/repo.git ; git branch -v\"\n\nIf the remote repository were file://a/long/path/repo.git , then I had\nto type\n( cd /a/long/path/repo.git ; git branch -v )\n\n\nI could write a script, which parses the repository name and executes\nthen the correct command.\n\nI just wondered, whether git has already some bult in tricks, which\nwould help me avoiding to implement my own potentially faulty script.\n\nI'm interested in executing 'read only' commands like\n\ngit branch\ngit log\n\n\nthanks in advance for any suggestions\n"}]}