# Feature OP-7622 - [git-repository] Diff between local and remote git-repository

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-7622

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

my current installation returns &quot;true&quot; in the &quot;local?&quot; var within &quot;/lib/open_project/scm/adapters/checkoutinstructions.rb&quot; everytime - wether or not its a remote repo (repository.url: http://remote-server/path/to/repo/.git) or a local repository (repository.url: /var/db/openproject/git/.git)_

_i edit following line:_  
checkout\_url = if local?  -&gt; checkout\_url = if repository.url\[/^http.\*/\]  
and switched the if cases (if true, use repository.url as checkout. If false: ::URI.join(with\_trailing\_slash(base\_url), repository.repository\_identifier)

After that change, the checkout\_url is valid to the repos.  
local repos: http://_openproject-_server/git/repository\_idenfier.git  
remote repos: http://remote-server/.path/to/repo/.git
