Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
99564afb
Commit
99564afb
authored
2 years ago
by
Adrien Béraud
Committed by
Sébastien Blin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ConversationRepository: use fmt in fetch
Change-Id: I2cb56b8320a2a0f8fa8cdef0c163bf4f662bdf0d
parent
ac792237
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/conversationrepository.cpp
+1
-1
1 addition, 1 deletion
src/jamidht/conversationrepository.cpp
with
1 addition
and
1 deletion
src/jamidht/conversationrepository.cpp
+
1
−
1
View file @
99564afb
...
...
@@ -2647,13 +2647,13 @@ ConversationRepository::fetch(const std::string& remoteDeviceId)
auto
repo
=
pimpl_
->
repository
();
if
(
!
repo
)
return
false
;
std
::
string
channelName
=
"git://"
+
remoteDeviceId
+
'/'
+
pimpl_
->
id_
;
auto
res
=
git_remote_lookup
(
&
remote_ptr
,
repo
.
get
(),
remoteDeviceId
.
c_str
());
if
(
res
!=
0
)
{
if
(
res
!=
GIT_ENOTFOUND
)
{
JAMI_ERR
(
"Couldn't lookup for remote %s"
,
remoteDeviceId
.
c_str
());
return
false
;
}
std
::
string
channelName
=
fmt
::
format
(
"git://{}/{}"
,
remoteDeviceId
,
pimpl_
->
id_
);
if
(
git_remote_create
(
&
remote_ptr
,
repo
.
get
(),
remoteDeviceId
.
c_str
(),
channelName
.
c_str
())
<
0
)
{
JAMI_ERR
(
"Could not create remote for repository for conversation %s"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment